Sign in to follow this  
Followers 0
troglo

Event on mouse button pressed

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0