Page 1 of 1 1
Topic Options
#209599 - 2014-10-31 01:45 PM autoscroll the textbox with kixforms
degla Offline
Just in Town

Registered: 2014-10-30
Posts: 4
Loc: DE
Hello again,

the text box cannot announce the complete contents so that I have activated the scroll bar. Unfortunately, the text is not automatically scrolled. How can I realize this most simply?

i found this post #kixforms forum kixforms . i dont understand this function for my situation.

My filling method (for each snippet in script)
 Code:
$Label10.Text = $Label10.Text + @CRLF + "printer is missing"

;The TextBox
$Label10 = $Form.Controls.Add("TextBox")
$Label10.Focus = True
$Label10.Location = 5,410
$Label10.Width = 380
$Label10.Height = 170
$Label10.Fontsize = 10
$Label10.ReadOnly = true
$Label10.Refresh()
$Label10.AcceptsReturn = True
$Label10.AcceptsTab = True
$Label10.Multiline = True
$Label10.WordWrap = True
$Label10.Scrollbars = 2
$Label10.ScrollToCaret()

happy halloween

greetings
degla


Edited by Mart (2014-10-31 02:07 PM)
Edit Reason: Please use code tags when posting code.

Top
#209601 - 2014-10-31 02:06 PM Re: autoscroll the textbox with kixforms [Re: degla]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You could turn things around and add new lines at the top. This way the old info is moving down and out of direct sight at some point and the latest message is always on top.

 Code:
$Label10.Text = "printer is missing" + @CRLF + $Label10.Text 
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#209603 - 2014-10-31 03:07 PM Re: autoscroll the textbox with kixforms [Re: Mart]
degla Offline
Just in Town

Registered: 2014-10-30
Posts: 4
Loc: DE
hi mart,
hello community,

many thanks for your input. it works for me. great, thanks.
but, is there a simple way for automatic down scrolling too. i mean the upscroll reading is little bit requiring habituation.

greetings
degla

Top
#209606 - 2014-10-31 07:32 PM Re: autoscroll the textbox with kixforms [Re: degla]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
If I don't remember wrong, you can use selectedtext or cursor... Don't remember for sure... Basically you set the focus to equal the text length.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.06 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org