FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour mousewheel on get
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mousewheel on get
Posted: Fri Jul 14, 2006 03:11 PM

Hi all,

is there a way to detect a mousewheel movement on a get?

Similar to a spinner i would like to enhance numeric gets with a method for incr. and decr. by srolling the mousewheel up or down.
Photoshop i.e. does this and i find it very comfortable.

But i have no idea how to recognize the wheel over a get.

Could anybody give me a hint for this?

Thanks,
Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: mousewheel on get
Posted: Fri Jul 14, 2006 04:16 PM

You have to inherit your own TMyGet and add MouseWheel() or HandleEvent() methods to it (or modify the standard TGet class).

Have a look at TWBrowse and TRichEdit for a sample.

EMG

Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mousewheel on get
Posted: Fri Jul 14, 2006 04:28 PM

Hi Enrico,

i feared you were in holiday :wink:

Until now i didn't yet work with inherited classes.

Do you mean something like :
TMyGet from TGet and then overide the method MouseWheel() from the window class with my own code?

I will try this. I think i remember a description from James Bott how to do such things.

Thanks and regards,
Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
mousewheel on get
Posted: Fri Jul 14, 2006 04:34 PM
Detlef Hoefner wrote:Hi Enrico,

i feared you were in holiday :-)


:-)

Detlef Hoefner wrote:Until now i didn't yet work with inherited classes.

Do you mean something like :
TMyGet from TGet and then overide the method MouseWheel() from the window class with my own code?


Yes, exactly.

EMG

Continue the discussion