I have 2 items (a field box and a bypass checkbox). every time the box is checked i need the field to become writable. unchecked is read only displaying some text.
this is as far as i got as I am stuck at making it read/write toggle
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
$hGUI = GUICreate("Test", 500, 500)
Global $hCombo = GUICtrlCreateInput("", 10, 10, 200, 20, BitOR($ES_AUTOHSCROLL,$ES_READONLY))
GUICtrlSetBkColor($hCombo,0xe7e5e5)
Global $cbox = GUICtrlCreateCheckbox ("", 40,50,10,20)
GUICtrlSetState($cbox, $GUI_Unchecked)
GUISetState()
Global $sCurrCombo = ""
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $cbox
If GUICtrlRead($cbox) <> $sCurrCombo Then
$sCurrCombo = GUICtrlRead($cbox)
GUICtrlSetStyle ($hCombo, $SS_LEFTNOWORDWRAP)
GUICtrlSetBkColor($hCombo,0xFFFFFF)
MsgBox(0, "Choice", "PLease enter the text")
EndIf
EndSwitch
WEnd