Giuseppe Posted June 3, 2006 Posted June 3, 2006 In a GUI with input controls and a button type "OK", if I modify the data into a control and then click on the button, the GUIGetMsg() generate a event for the control modified (where is possible to make some tests) and then the event for the button (for example, exit out the cicle). If I press Enter and have defined a default action type "GUICtrlSetState($BottOK, $GUI_DEFBUTTON)", directly exit out the cicle, without generate the event for the modifies controls. The first action is the right for the same situation realized, with mouse or keyboard. Best regards, Giuseppe.
Valuater Posted June 3, 2006 Posted June 3, 2006 I dont understand exactly... could you show some code for us to view the problem/question 8)
Uten Posted June 3, 2006 Posted June 3, 2006 I did not get it either. You want to exit the application without trigging an event from the gui item you have clicked? A code sample would probably be clarifying. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
mr.underperson Posted June 3, 2006 Posted June 3, 2006 You might be better removing the $DEFBUTTON, and instead use a HotKey for the {enter} action, something like... HotKeySet("{Enter}" , "EnterExitCicle") ; ... ; Enter to exit cicle.. func EnterExitCicle() if WinActive($gui) then ExitCicle() ; replace with your own exit-cicle function name else HotKeySet("{Enter}") Send("{Enter}") HotKeySet("{Enter}" , "EnterExitCicle") endif endfunc but then, perhaps I misunderstood the question. -mu
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