Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RageMatrix

Win32 coding: Listbox prob.

This topic is 6157 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all. I am writing a small app that uses a listbox control to display some string data. When the data added is outside the size of the listbox, a scroll bar appears as it should. However, I would like the listbox to "scroll" data off the top, so this means that the scroll bar should always be at the bottom of the control. When new data is added, the scroll bar "snaps" back to the top of the list, effectively obscuring the new data that has been added. How can I make the listbox always show the bottom of the list? Is there some way to always make the scrollbar stay focused at the bottom of the control? Cheers for any info. RM. -=Kicking Butt and Writing Code=-

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
im not sure exactly how to do this but id guess you''d create a WM_VSCROLL event specifying where you want the listbox to scroll to

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
try... selecting the last item in your listbox after you add your new item.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!