BryonR Posted March 10, 2009 Share Posted March 10, 2009 (edited) I'm trying to see if I can do the following: I have two GUICtrlCreateTab let call them tab1 tab2 each of them have diffrent input fields. What I would like to see is when I click either tab it clears all input fields. Thanks! Bryon Edited March 10, 2009 by BryonR Link to comment Share on other sites More sharing options...
GEOSoft Posted March 10, 2009 Share Posted March 10, 2009 $Gw = 400 $Gh = 400 $Frm_Main = GUICreate("Test form", $Gw, $Gh) $Tab = GUICtrlCreateTab(0, 0, $Gw, $Gh) $Tab_1 = GUICtrlCreateTabItem("Tab 1") $In_1 = GUICtrlCreateInput("", 10, 10, 100, 20) $Tab_2 = GUICtrlCreateTabItem("Tab 2") $In_2 = GUICtrlCreateInput("", 10, 10, 100, 20) GUISetState() While 1 $Msg = GUIGetMsg() Switch $Msg Case -3 Exit Case $Tab GUICtrlSetData($In_1, "") GUICtrlSetData($In_2, "") EndSwitch Wend George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
BryonR Posted March 10, 2009 Author Share Posted March 10, 2009 Thank you! What about radio and check boxes? -Bryon Link to comment Share on other sites More sharing options...
GEOSoft Posted March 10, 2009 Share Posted March 10, 2009 Thank you!What about radio and check boxes?-BryonSee GUICtrlSetState() Hint= $GUI_UNCHECKED or $GUI_CHECKED George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
GEOSoft Posted March 10, 2009 Share Posted March 10, 2009 By the way, I often create a function to set the initial data and states of controls that may be changed. Then you just call that function to refresh the control data and states. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
BryonR Posted March 10, 2009 Author Share Posted March 10, 2009 Thank you! 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