Jump to content

Event on mouse button pressed


troglo
 Share

Recommended Posts

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

Link to comment
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

Link to comment
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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...