Re: [Win32Lib] How add/remove MENU ITEMS "on the fly"?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sun, 6 Mar 2005 20:14:04 -0800, Dan Moyer <DANIELMOYER at prodigy.net>
wrote:

>What should I do to allow an app user to add or remove certain menu items
>from the menu bar while the program is running?  I'm pretty sure it can be
>done, & I could futz with it to try to make it happen, but I'm hoping
>someone actually KNOWS how to do it already  :)

The latest version of MEditor has a dynamic Window menu, see routine
rebuildWindowMenu() in files.e, which is also called from options.ew.
It does not attempt to change the 'bar', but I don't think you
actually meant that anyway.

Mike's ARWEN also has a demo which adds/removes menu entries on the
fly.

>So, what should I do (with the CatsMenus?), to "re-do" (re-display) the
>menus after a user has added or deleted categories, so the Edit menu now has
> the users choices showing, AND pointed to the handler, WHILE the program is
>running??
I believe CatsMenus is purely an internal list of win32lib id's, which
is a good thing to have and you can freely manipulate as a normal
Euphoria sequence. Windows itself should cope via the create/destroy
calls you made.

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu