Kogmedia Posted June 4, 2007 Share Posted June 4, 2007 Hello, I am trying to disable a tabs or tab when a user clicks the start button but I can't get the GUIctrlSetState to work is this a bug? #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 633, 454, 193, 115) $Tab1 = GUICtrlCreateTab(8, 24, 609, 417) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Button1 = GUICtrlCreateButton("AButton1", 496, 336, 75, 25, 0) $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") $Button2 = GUICtrlCreateButton("AButton2", 504, 376, 75, 25, 0) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetState($TabSheet1,$GUI_DISABLE) Case $Button2 GUICtrlSetState($TabSheet2,$GUI_DISABLE) EndSwitch WEnd [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
koiron Posted June 5, 2007 Share Posted June 5, 2007 From my understanding, you can't disable tab items, only the entire tab control. Your best bet around this, Kogmedia, is to disable all of the GUI controls on the tab item you want to 'disable'. -Koiron Link to comment Share on other sites More sharing options...
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