Sign in to follow this  
Followers 0
steve8tch

GUICtrlSetOnEvent and InputBox

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

Is this something that could or should be added ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0