ikaros Posted October 15, 2007 Share Posted October 15, 2007 Hi,My application has 6 deferent menu items, each has its own controls.How can i clear the GUI from the controls and create the new controls?Now im doing it like this :While 1 $msg = GUIGetMsg() Select Case $msg = $exititem or $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $importItem clearScreen() $group = GUICtrlCreateGroup("Sample Group", 0, 0,300,80) $radio1 = GuiCtrlCreateRadio("Radio One", 5, 20, 80) GuiCtrlSetState(-1, $GUI_CHECKED) $radio2 = GuiCtrlCreateRadio("Radio Two", 5, 40, 80) GUICtrlCreateGroup ("",-99,-99,1,1) ;close group Case $msg = $saveItem clearScreen() GUICtrlCreateCombo("Select",0,0,180) EndSelectWEndGUIDelete()ExitFunc clearScreen() GUICtrlDelete($group) GUICtrlDelete($radio1) GUICtrlDelete($radio2)EndFuncThanks,Ikaros,coffee-stories.com Ofer,WWW Home baseArticles for allOnline statistics toolThe online mass mailerWorld of bicycles Link to comment Share on other sites More sharing options...
BrettF Posted October 15, 2007 Share Posted October 15, 2007 it maybe easier to draw all controls on the window (if there aren't that many) and then disabling and hiding them Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ikaros Posted October 22, 2007 Author Share Posted October 22, 2007 Thanks, It does work that way (all tough its kinda ugly coding, don't u think?) Ofer,WWW Home baseArticles for allOnline statistics toolThe online mass mailerWorld of bicycles 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