Jump to content

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

Link to comment
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 :(

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...