On Jan 27, 2007, at 10:42 AM, Octave Julien wrote:
Hi,
I'd like to have a menu listing the open documents in my app, but
I'm not sure how to do that.
I think I understand how to use a control array so that individual
menu items are created on the fly when I create or open a new
document. I guess I should use the code of the original, hidden
menu item to change the active document, so that all new menu items
can do the same when selected by the user. But how to identify
which document to activate ? As far as I know, menu items have no
properties. So I can't attach a reference to a particular document
to it. And the menu item's title is not enough, as soon as several
documents have the same name.
Any idea about how to solve that ?
Use a custom subclass of menuitem that you create and add whatever
properties you need (like a folderitem)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>