Sign in to follow this  
Followers 0
the_lord_mephy

Input styles

2 posts in this topic

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]

Share this post


Link to post
Share on other sites



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

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