09-10-2009 09:45 AM
I have a wish list for CVI menu bars.
I'm ok with having a separate set of functions for menu bars (e.g. GetMenuBarAttribute() vs. GetCtrlAttribute(), etc.)
Any other ideas?
09-10-2009 10:35 AM
Hi Al, I totally agree with you! Your list seems to address all the relevant wishes I can think of about menu bars.
To make you feel a little bit happy, code generation and direct jump to menu item code via right-clicking on it have been introduced with release 8.5, as you can read in this discussion.
09-10-2009 10:46 AM - edited 09-10-2009 10:47 AM
Roberto:
Thanks for pointing out the feature to view the callbacks. I wasn't drilling down to the individual menu item when I tried it, so I didn't see those options. It makes sense that they're tied to a menu item and not to the menu bar.
I wish the other items on my wish list were as easy to solve.
Thanks!
09-11-2009 02:56 AM
If I may:
09-11-2009 08:54 AM - edited 09-11-2009 08:55 AM
Al S & CVI-User,
Thanks for the good suggestions. I will make sure that R&D gets this info and can consider these suggestions for future versions of CVI.
I did want to address Al S's issue with the exclamation mark. If you look in the help, under the 'Programming with Menu Bars' article it mentions the following:
"By default, immediate action menus contain an exclamation mark following the menu name. You can use the SetMenuBarAttribute function and set the ATTR_SHOW_IMMEDIATE_ACTION_SYMBOL attribute to false to hide the exclamation mark."
So the marks are still there by default, but we can programatically remove them if you want to have a menu with no sub-items. It might be nice to be able to change it within the Edit Menu Bar window, but until that is available this should hopefully suffice.
09-13-2009 01:09 AM
I especially second Al's suggestion on treating menus as other UIR controls.
I mean, having them on the UIR editor popup menu next to all other possible controls.
I realized that I am using menus much less than I should.
While most Windows apps have menus, I hardly convince myself to use them in my apps, since I find them hard to access, modify and manage.