buzz44 Posted May 4, 2005 Share Posted May 4, 2005 (edited) In the GUICtrlCreateMenu/MenuItem() function examples. It has a "Recent Files" menu, where each time you add a file it creates a new menu item with the file name.Is there a way I can later on read what is in the recent files menu?Is there a way I can delete an item inside?Thanks Edited May 4, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
jpm Posted May 4, 2005 Share Posted May 4, 2005 In the GUICtrlCreateMenu/MenuItem() function examples. It has a "Recent Files" menu, where each time you add a file it creates a new menu item with the file name.Is there a way I can later on read what is in the recent files menu?Is there a way I can delete an item inside?Thanks<{POST_SNAPBACK}>You get an advanced mode in GUICtrlRead (Thanks to Holger)for deletetion GUICtrlDelete should work as menutitem return ControlId Link to comment Share on other sites More sharing options...
Holger Posted May 4, 2005 Share Posted May 4, 2005 Or you save i.e. the latest 5 used files/path/text/etc. in an array... 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...
buzz44 Posted May 4, 2005 Author Share Posted May 4, 2005 (edited) Cool. I'm having it so that the latest 5-10 files are saved. So if its , e d c b a Then you add a new item its, f e d c b Etc. Do I have to have a controlID? Because /w a ListView you can just read it and such. If I do then each time I add a new item the ControlID will have to be an array Dim $test[9] $test[$i] = GUICtrlCreateMenuItem("Delete", $FM) $i = $i + 1 Edited May 4, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
buzz44 Posted May 5, 2005 Author Share Posted May 5, 2005 I still cant get it to work , any help please. qq Link to comment Share on other sites More sharing options...
buzz44 Posted May 5, 2005 Author Share Posted May 5, 2005 Bump before school. I would much appreciate help please. I can't seem to get it to read or delete a menuitem. qq 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