Jump to content
Sign in to follow this  
buzz44

Read whats in GUICtrlCreateMenu

Recommended Posts

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 by Burrup

qq

Share this post


Link to post
Share on other sites

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

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 by Burrup

qq

Share this post


Link to post
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...