Message 1 of 1
Updating menu items
Not applicable
07-10-2008
10:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a 'Recent files' menu, but I don't seem to be able to get the menu to update when i change the list. As far as MaxScript is concerned, it thinks the <menuitem>.text values are changing, but the menu stubbornly refuses to change them.
The only exception is when I change the values in the 'on <menu> open do <change values>' section of the menu definition. I thought that would mean that I could change them in the event handler definition ('on <menuitem> picked do <change values>'), but noooo.
Anyone have any suggestions on how I can force the menu to update?
BTW, it's docked with a dialog with the createdialog <dialog> menu:<recent items menu> definition.
The only exception is when I change the values in the 'on <menu> open do <change values>' section of the menu definition. I thought that would mean that I could change them in the event handler definition ('on <menuitem> picked do <change values>'), but noooo.
Anyone have any suggestions on how I can force the menu to update?
BTW, it's docked with a dialog with the createdialog <dialog> menu:<recent items menu> definition.