Solved

How to manual  scroll in a listbox

Posted on 1998-09-06
3
495 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create Database on Android via Delphi dbExpress 3 110
Printing problem 2 102
Making delphi communicate with a c# service 16 111
Adoquery sql  left join does not work 25 99
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

840 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