Uncle Argyle Posted October 26, 2007 Posted October 26, 2007 Does anyone know why a disabled input is not greyed out on a tab item? Item is disabled and does not accept input, but it does not turn grey like the input ctrl does outside of a tab item. See the difference in my example below...both are disabled but have different background colors. #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Form1", 378, 159, 432, 283) $MainTab1 = GUICtrlCreateTab(5, 10, 200, 140) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $MainTabSheet1 = GUICtrlCreateTabItem("Test") $Input1 = GUICtrlCreateInput("Input1", 20, 64, 121, 21) GUICtrlSetState($Input1, $GUI_DISABLE) GUICtrlCreateTabitem (""); end tabitem definition $Input2 = GUICtrlCreateInput("Input1", 220, 64, 121, 21) GUICtrlSetState($Input2, $GUI_DISABLE) GUISetState(@SW_SHOW) GUISetOnEvent($GUI_EVENT_CLOSE, "close") While 1 Sleep(100) WEnd Func close() Exit EndFunc ;=> close Thanks, Mike.
DjDeep00 Posted October 26, 2007 Posted October 26, 2007 If you want it to turn grey..then just use GUICtrlSetBkColor($Input1,0xE0DFE3)..
Uncle Argyle Posted October 26, 2007 Author Posted October 26, 2007 If you want it to turn grey..then just use GUICtrlSetBkColor($Input1,0xE0DFE3)..Thanks, I was hoping that there was an option somewhere so that I could set this as a default option rather than explicitly set each ctrl.
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