troglo Posted March 20, 2009 Posted March 20, 2009 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
DaRam Posted March 20, 2009 Posted March 20, 2009 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
troglo Posted March 20, 2009 Author Posted March 20, 2009 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.
DaRam Posted March 20, 2009 Posted March 20, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now