|
Post by flotul on Apr 29, 2021 13:27:25 GMT -5
Hi,
I'm populating a 255 items (or lines) list and display it in a TextEditor.
Since the size of my control is smaller than the list, I will always see the end of the list.
But, once the list created, I'd like the display to automatically show the top of the list like I'm doing it manually with the ctrl+home keys.
I can move up the cursor with the print #handle, "!select column row" ; command. But this doesn't scrolls the display up...
Any idea how I can achieve this please?
|
|
|
Post by Rod on Apr 29, 2021 13:40:11 GMT -5
'open a text window open "Example" for text as #1 #1 "trapclose [quit]"
'print Hello World in the window for n= 0 to 300 #1 "Hello World ";n next
'set origin back to 0 #1 "!origin ";0;" ";0 wait
'close the window [quit] close #1 end
|
|
|
Post by flotul on Apr 29, 2021 14:37:35 GMT -5
Thanks a lot Rod.
In fact, I saw this in the help file but I wrongly understood it was about the control's position itself...and didn't try it.
Should have....
Thanks a lot :-)
|
|