steve8tch Posted August 8, 2005 Posted August 8, 2005 Can you configure an InputBox with a GUICtrlSetOnEvent? The following code shows that nothing happens when I click on the InputBox. I don't know if this is deliberate or if I have done something wrong here. ; Script generated by AutoBuilder 0.5 Prototype #include <GuiConstants.au3> Opt("GUIOnEventMode", 1) GuiCreate("MyGUI", 173, 163,(@DesktopWidth-173)/2, (@DesktopHeight-163)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") $Button_1 = GuiCtrlCreateButton("Button1", 30, 20, 110, 40) GUICtrlSetOnEvent($Button_1,"Button1_clicked") $Label_2 = GuiCtrlCreateLabel("Label2", 30, 70, 110, 30) GUICtrlSetOnEvent($Label_2,"Label2_clicked") $Input_3 = GuiCtrlCreateInput("Input3", 30, 110, 110, 30) GUICtrlSetOnEvent($Input_3,"Input3_clicked") GuiSetState() While 1 Sleep(1000) ; Idle around WEnd Func Input3_clicked() MsgBox(0, "GUI Event", "Input3_clicked") EndFunc Func Label2_clicked() MsgBox(0, "GUI Event", "Label2_clicked") EndFunc Func Button1_clicked() MsgBox(0, "GUI Event", "Button1_clicked") EndFunc Func CLOSEClicked() MsgBox(0, "GUI Event", "You clicked CLOSE! Exiting...") Exit EndFunc Any thoughts.
Josbe Posted August 8, 2005 Posted August 8, 2005 As Far I Know, this notification isn't returned in MessageLoop mode too. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
GaryFrost Posted August 8, 2005 Posted August 8, 2005 InputBox (stripped down edit control) at this time the EN_CHANGE Notification is not being capture so the GUICtrlSetOnEvent is not going to work. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
steve8tch Posted August 9, 2005 Author Posted August 9, 2005 Is this something that could or should be added ?
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