Board index » delphi » Check If Left Mousebutton Is Pressed???

Check If Left Mousebutton Is Pressed???

Hi all!

How can I find out if the left mouse button is pressed e.g. like
Listboxes do when the user keeps the scroll-up or scroll-down button
clicked and the contents of the listbox are scrolled???

Tnx, Leonardo

 

Re:Check If Left Mousebutton Is Pressed???


Quote
Rias Sherzad <christof.schm...@hamburg.isys.de> wrote:
>How can I find out if the left mouse button is pressed e.g. like
>Listboxes do when the user keeps the scroll-up or scroll-down button
>clicked and the contents of the listbox are scrolled???

Hello Leonardo,

You know it because it was not yet released. Look at the spin.pas
that has example component spin button. Note that spinbutton when
pressed is repeating its action. It is implemented with timer created
when button is pressed and destroyed when released. I think this is the
way to do this.

Hope it helps,
Pawel

--
\||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||/
-         Pawel Ksiezyk     ksie...@bull.mimuw.edu.pl        -
-    Institute of Informatics   Warsaw University   Poland   -
/||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\

Other Threads