buzz44 1 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 Share this post Link to post Share on other sites
jpm 91 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 Share this post Link to post Share on other sites
Holger 14 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 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
buzz44 1 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 Share this post Link to post Share on other sites
buzz44 1 Posted May 5, 2005 I still cant get it to work , any help please. qq Share this post Link to post Share on other sites
buzz44 1 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 Share this post Link to post Share on other sites