Jump to content
Sign in to follow this  
ikaros

GUI clear screen

Recommended Posts

ikaros

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)

EndSelect

WEnd

GUIDelete()

Exit

Func clearScreen()

GUICtrlDelete($group)

GUICtrlDelete($radio1)

GUICtrlDelete($radio2)

EndFunc

Thanks,

Ikaros,

coffee-stories.com

Share this post


Link to post
Share on other sites
BrettF

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×