|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Little-Acorn
Joined: 06 Jul 2008 Posts: 111 Location: San Diego
|
Posted: Thu Oct 21, 2010 1:11 am Post subject: How to show the END of a long string in an edit box? |
|
|
How to show the END of a long string in an edit box?
I am using an edit box as a status window in an application:
i=winio@('%64.10eb[hscrollbar,vscrollbar]',statstg,32000)
As a program runs, it appends occasional messages to the end of the string 'statstg' and updates it in the edit box. Works fine until the tenth message or so, after which subsequent messages scroll off the bottom of the box. The user can see them by sliding the vertical scrollbar, of course. But it would be nice if the box did that automatically, so that the newest message is visible at the bottom of the scroll box, and older messages eventually scroll off the TOP of the box.
I know how to put messages at the end of the string instead of the beginning, basically having 30,000 or so leading blanks before the messages start to appear at the end of the string. There's a right-justify function.
But how do I get the edit box to display the END of the string instead of the beginning? IOW, how do I get the box to automatically scroll to the very end of the string, each time I update it? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Thu Oct 21, 2010 8:39 am Post subject: |
|
|
SCROLL_EDIT_BUFFER@ might do the trick.
See the FTN95 help file. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Sun Oct 24, 2010 9:00 pm Post subject: |
|
|
What about:
SUBROUTINE EDIT_MOVE_BOF@(E)
INTEGER E(24) ! EDIT_INFO block
Moves the cursor to the bottom of the file (as if CTRL-END had been pressed).
?
Eddie |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|