Mouse Scroll Button for Scroll Up and Scroll Down in Window

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jayadevu
Posts: 238
Joined: Tue May 19, 2009 7:10 am

Mouse Scroll Button for Scroll Up and Scroll Down in Window

Post by jayadevu »

Hi,

What is the syntax to use Mouse Scroll Button in ON Key event while defining windows.

I need to detect both Scroll Up and Scroll Down action and code function.

DEFINE WINDOW FrmMain Title "Test"
.
.
.
ON Key <Scroll Up> ZoomIn()

ON Key <Scroll Down> ZoomOut()


End Window
Presently i am using :

ON KEY (Grey +) ZoomIn()

ON KEY (Grey -) ZoomOut()

Warm regards,

Jayadev
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: Mouse Scroll Button for Scroll Up and Scroll Down in Window

Post by Pablo César »

Probably you will find the way with event procedure.

There is something here: viewtopic.php?p=32834#p32834
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Mouse Scroll Button for Scroll Up and Scroll Down in Window

Post by mol »

I read about problems with scroll detect in last win 10 version at google harbour group
Post Reply