the_lord_mephy Posted November 6, 2004 Posted November 6, 2004 Ok this is what I have: ______________________ ________ |Readonly Input box___| |Button A| I have the input box as GuiCtrlCreateInput("Readonly Input box", 1, 1, 70, 20, $es_readonly) And i want it to just be normal after the button is clicked. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Josbe Posted November 6, 2004 Posted November 6, 2004 You maybe want try activate/deactive way... #include <GUIConstants.au3> GuiCreate("Test", 244, 76) $btnState= $GUI_DISABLE $Input = GuiCtrlCreateInput("text", 10, 20, 130, 30) GUICtrlSetState(-1, $btnState) $Button = GuiCtrlCreateButton("Enable", 150, 20, 60, 30) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button If $btnState = $GUI_DISABLE Then GUICtrlSetState( $Input, $GUI_ENABLE) GUICtrlSetData( $Button, "Disable") $btnState = $GUI_ENABLE Else GUICtrlSetState( $Input, $GUI_DISABLE) GUICtrlSetData( $Button, "Enable") $btnState = $GUI_DISABLE EndIf EndSelect WEnd Exit AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
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