forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to show the END of a long string in an edit box?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Little-Acorn



Joined: 06 Jul 2008
Posts: 111
Location: San Diego

PostPosted: Thu Oct 21, 2010 1:11 am    Post subject: How to show the END of a long string in an edit box? Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7928
Location: Salford, UK

PostPosted: Thu Oct 21, 2010 8:39 am    Post subject: Reply with quote

SCROLL_EDIT_BUFFER@ might do the trick.
See the FTN95 help file.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Sun Oct 24, 2010 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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