troglo Posted March 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
DaRam Posted March 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
troglo Posted March 20, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
DaRam Posted March 20, 2009 Share 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. Link to comment Share on other sites More sharing options...
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