Jewtus Posted March 11, 2015 Share Posted March 11, 2015 (edited) $MenuFile = GUICtrlCreateMenu("File") $MenuGenerateFiles = GUICtrlCreateMenuItem("Generate", $MenuFile) $MenuExportTemplate = GUICtrlCreateMenuItem("Export Data", $MenuGenerateFiles) GUICtrlCreateMenuItem("", $MenuGenerateFiles) ; Create a separator line $ExitMenu = GUICtrlCreateMenuItem("Exit", $MenuFile) This is the code I'm using, but it fails to nest the "Export Data" under the "Generate" menu. Can anyone let me know what I'm missing here? It does create the menus, but it doesn't put export data in the place I expected. Edited March 11, 2015 by Jewtus Link to comment Share on other sites More sharing options...
Solution orbs Posted March 11, 2015 Solution Share Posted March 11, 2015 you need the "Generate" to be a menu, not a menu item: ; wrong: $MenuGenerateFiles = GUICtrlCreateMenuItem("Generate", $MenuFile) ; correct: $MenuGenerateFiles = GUICtrlCreateMenu("Generate", $MenuFile) Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Jewtus Posted March 11, 2015 Author Share Posted March 11, 2015 Thats what I needed! 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