mousewheel on get

mousewheel on get

Postby Detlef Hoefner » Fri Jul 14, 2006 3: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Re: mousewheel on get

Postby Enrico Maria Giordano » Fri Jul 14, 2006 4: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Detlef Hoefner » Fri Jul 14, 2006 4: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Enrico Maria Giordano » Fri Jul 14, 2006 4:34 pm

Detlef Hoefner wrote:Hi Enrico,

i feared you were in holiday :wink:


:-)

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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests