forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Scrolling list box.

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
chucks0
Newbie


Joined: 08 Jun 2002
Posts: 23

PostPosted: Fri Jun 14, 2002 8:09 pm    Post subject: Scrolling list box. Reply with quote

I have created a dialog with a list box for displaying realtime status information. The problem is that as I add items to the list box, they eventually go off the bottom of the list. While there is a scroll bar on the list box, I would like for the list to scroll along with the items so that the most recent entries are always visible.

Any thoughts?
Back to top
View user's profile Send private message
chucks0
Newbie


Joined: 08 Jun 2002
Posts: 23

PostPosted: Fri Jun 14, 2002 8:32 pm    Post subject: RE: Scrolling list box. Reply with quote

I found a solution for this. I added the subroutine which I call evertime I update the list box. It basically selects the last item in the list which causes the list box to scroll to the last item. The @NEXT statement was added because I don't want any of the items in the list to be selected.

:SUB_AutoScroll
LIST SEEK,lstStatus,@PRED(@COUNT(lstStatus))
%T = @NEXT(lstStatus)
EXIT
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jun 24, 2002 8:46 pm    Post subject: Reply with quote

You can scroll a list box to the last line using @sendmsg too.

%E = @sendmsg(~LIST1,$0197,@pred(@count(LIST1)),0)

Jules[/quote]
Back to top
View user's profile Send private message Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Tue Jun 25, 2002 3:39 pm    Post subject: Reply with quote

I also had the same problem a long time ago, and it was so easy to do it with that list seek Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group