ReverendJ1 Posted August 25, 2006 Share Posted August 25, 2006 Does anyone know of a way to disable menu items? ie if your clipboard is empty, paste will be disabled in the edit menu. I know how to just not make them show up, but I just think it would be nice to have certain menu items disabled sometimes. thank you Link to comment Share on other sites More sharing options...
Paulie Posted August 25, 2006 Share Posted August 25, 2006 (edited) Does anyone know of a way to disable menu items? ie if your clipboard is empty, paste will be disabled in the edit menu. I know how to just not make them show up, but I just think it would be nice to have certain menu items disabled sometimes. thank youGuiCtrlSetState(*Item*, $GUI_DISABLE) I think something like that Edit: Made myself look better Edited August 25, 2006 by Paulie Link to comment Share on other sites More sharing options...
Holger Posted August 25, 2006 Share Posted August 25, 2006 GUICtrlSetState($menuItem, $GUI_DISABLE) 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...
ReverendJ1 Posted August 25, 2006 Author Share Posted August 25, 2006 I don't know what is wrong with me, I swear I tried that before. Maybe there was something wrong with my code to determine if it should be disabled or not. Anyway, it works fine now. Thanks Holger and Paulie. BTW Paulie, that would knock out the whole window. Link to comment Share on other sites More sharing options...
Paulie Posted August 25, 2006 Share Posted August 25, 2006 I don't know what is wrong with me, I swear I tried that before. Maybe there was something wrong with my code to determine if it should be disabled or not. Anyway, it works fine now. Thanks Holger and Paulie. BTW Paulie, that would knock out the whole window. What are you talking about I have the same thing a Holger Pay no attention to the edit Link to comment Share on other sites More sharing options...
GaryFrost Posted August 25, 2006 Share Posted August 25, 2006 What are you talking about I have the same thing a Holger Pay no attention to the edit you haveGuiSetStateand Holger hasGUICtrlSetState SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Paulie Posted August 25, 2006 Share Posted August 25, 2006 you haveGuiSetStateand Holger hasGUICtrlSetStateNo i don't 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