Markir 0 Posted March 10, 2005 Hello,I have a short question about "Menu & GuiCreateGroup",here are two screenshots:First Screenshot:If somebody click on "Einstellungen" --> "Übersicht" the GUICreateGroup "Uebersicht" will be opened.This works fine.Second Screenshot:If somebody click on "Einstellungen" --> "IP adresse" the GUICreateGroup "IP Adresse" will be opened, but then I see two values of the side "Übersicht". How Can I close the first GUICreateGroup, if somebody open a new one? Share this post Link to post Share on other sites
Markir 0 Posted March 10, 2005 Has nobody an idea, how I can solve this? Share this post Link to post Share on other sites
Markir 0 Posted March 15, 2005 Why does nobody help me, to solve my problem? Share this post Link to post Share on other sites
Holger 14 Posted March 15, 2005 Did you try "GUICtrlSetState($groupname,$GUI_DISABLE)" and later $GUI_ENABLE ? Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
Holger 14 Posted March 15, 2005 (edited) No no, when you enable one group you must not disable the group after all, but _hide_ the other group, sorry, "disable" was the wrong word - show and hide are important.And you have to use a controlid for GUICtrlSetState()!I don't know what you do but it seems to me like not really thought about .You don't have to create all of the controls new with every function call.Please take a look at my 2 samples here:http://www.autoitscript.com/forum/index.php?showtopic=8753So this is one possibility.Another is to create 1 time all of the controls and only show them in the first function and hide them in the other function like:Global $label1,$label2,$button ... $label1 = GUICtrlCreateLabel("info",10,10,100,20) $label2 = GUICtrlCreateLabel("status",10,10,100,20) GUICtrlSetState(-1,$GUI_HIDE) $button = GUICtrlCreateButton("OK",50,100,70,20) ... Func ShowLabel1() GUICtrlSetState($label1,$GUI_SHOW) GUICtrlSetState($label2,$GUI_HIDE) EndFunc Func ShowLabel2() GUICtrlSetState($label2,$GUI_SHOW) GUICtrlSetState($label1,$GUI_HIDE) EndFuncSo long... Edited March 15, 2005 by Holger Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
Holger 14 Posted March 15, 2005 Maybe later Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
Holger 14 Posted March 15, 2005 Try/study this... Regards Holgerxpr_install_men.zip Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
SlimShady 1 Posted March 21, 2005 Put it in the case "Case $msg = $GUI_EVENT_CLOSE" Share this post Link to post Share on other sites