Markir Posted March 10, 2005 Share 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? Link to comment Share on other sites More sharing options...
Markir Posted March 10, 2005 Author Share Posted March 10, 2005 Has nobody an idea, how I can solve this? Link to comment Share on other sites More sharing options...
Markir Posted March 15, 2005 Author Share Posted March 15, 2005 Why does nobody help me, to solve my problem? Link to comment Share on other sites More sharing options...
Holger Posted March 15, 2005 Share Posted March 15, 2005 Did you try "GUICtrlSetState($groupname,$GUI_DISABLE)" and later $GUI_ENABLE ? Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Holger Posted March 15, 2005 Share 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 colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Holger Posted March 15, 2005 Share Posted March 15, 2005 Maybe later Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
Holger Posted March 15, 2005 Share Posted March 15, 2005 Try/study this... Regards Holgerxpr_install_men.zip Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
SlimShady Posted March 21, 2005 Share Posted March 21, 2005 Put it in the case "Case $msg = $GUI_EVENT_CLOSE" Link to comment Share on other sites More sharing options...
Markir Posted March 21, 2005 Author Share Posted March 21, 2005 Thanks... 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