Jump to content

Recommended Posts

Posted

I see that the GUICtrlSetOnEvent($button, "clicked") reacts only when the mouse button is released.

Can you please tell me how can I generate an event when a mouse button is pressed on a specific control (like a button)?

Troglo

Posted

This is not a direct answer to your questions.... why not use the GuiOnEventMode and GUIGetMsg to do this?

I see that the GUICtrlSetOnEvent($button, "clicked") reacts only when the mouse button is released.

Can you please tell me how can I generate an event when a mouse button is pressed on a specific control (like a button)?

Troglo

Posted

This is not a direct answer to your questions.... why not use the GuiOnEventMode and GUIGetMsg to do this?

I know that this could be a solution.

But I have some time consuming routines and therefore using GUIGetMsg tests could give quite a slow reaction to my clicks.

Posted

Have you explored GUIGetCursorInfo to do this? You might have to do sub-classing otherwise.

I know that this could be a solution.

But I have some time consuming routines and therefore using GUIGetMsg tests could give quite a slow reaction to my clicks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...