Solved

How to manual  scroll in a listbox

Posted on 1998-09-06
3
490 Views
Last Modified: 2010-04-06
I need to how to scoll at listbox, by using to bottons insted of the scroll bars ?

Thank you
LPD
0
Comment
Question by:lpd
3 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1338768
Use WM_VSCROLL Message. For example to scroll the list one page down write:
SendMessage(ListBox1.Handle,  WM_VSCROLL,  SB_PAGEDOWN,  0);

0
 
LVL 10

Expert Comment

by:viktornet
ID: 1338769
What ronit told you is exactly right :+)

SendMessage(ListBox1.Handle, WM_VSCROLL, 1, 0);//Do you see the 1..that's how much to scroll at one time...For horizontal scroll use WM_HSCROLL

Regards,
Viktor Ivanov
0
 

Author Comment

by:lpd
ID: 1338770
Thank you, it works very fine

LPD :-)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now