![]() The effect is the same no matter which function you use, though typically you will find it easier to use the VkMenu function. Note that instead of retaining pointers to all of your menu items and using VkMenuItem::remove() to remove menu items, you can instead use VkMenu::removeItem(). Remove() does not destroy a menu item, it simply removes the item from the menu hierarchy. If you want to remove a menu item from a menu, you can call VkMenuItem::remove(): void remove() You can display a hidden menu item by calling its show() function. Hide() does not remove the menu item from the menu, it simply unmanages the widget or gadget associated with a menu item. The VkMenuItem::hide() function makes a menu item invisible when you display the menu to which it belongs: void hide() You can call show() to display a menu item after you have hidden it with hide(). You do not have to explicitly call a menu item's show() function to display it. The VkMenuItem::show() function makes a menu item visible when you display the menu to which it belongs: void show()īy default, all menu items are visible when they are created (that is, they appear when you display the menu to which they belong). You can also easily move or replace items. You can display, activate, and deactivate items with a single function call. You can manipulate the menu objects more easily than widgets. However, the ViewKit menus offer several advantages over directly using IRIS IM widgets and gadgets. For example, an action implemented as a VkMenuAction object represents a XmPushButton gadget along with an associated callback. The classes derived from VkMenuItem correspond closely with IRIS IM widgets and gadgets. The second type of derived classes are individual menu items: actions, toggles, labels, and separators. The first serve as containers and correspond to the menu types supported by IRIS IM: popup menus, pulldown menu panes, menu bars, and option menus. There are two types of classes derived from VkMenuItem. The basis for all ViewKit menu classes is the abstract class VkMenuItem, which is derived from VkComponent. The ViewKit menu package also provides an object-oriented interface for activating and deactivating menu items, dynamically adding, removing, or replacing menus items or menu panes, and performing other operations. ViewKit provides a set of classes that facilitate common operations on menus, including creating menu bars, menu panes, popup menus, option menus, and cascading menu panes. ![]() Not as convenient, and the MSDE install still fails (being crap), but now people know that it's MSDE, and that means that a) I don't get the blame for MSDE's installation failings, and b) it's easier to figure out what happened and do something about it.IRIS IM provides the components for building menus (buttons, menu shells, and so on) but does little to make menu construction easy. We separated the installs, creating an extra step (install MSDE using its own installer, then install our software). MS realised they were rubbish as well, and said "erm, actually, they don't work properly, don't use them." By then, installs were failing left right and centre, and because it was all integrated into our install, it looked like our install was causing the errors, and our install got the blame. We used to use these merge modules, until we realised that they were rubbish. ![]() Case in point: our product uses MSDE, which you can ship with an installation using merge modules (predefined components that you can just drop into an MSI install, for those not familiar with the term). If DirectX fails in some non-obvious way, it can impact on the host installer meaning people come back to with complaints about their installs. Duck: Because what you're suggesting means the installer would have to accept more responsibility for getting DirectX working. As an installation developer, I like installations to be quite verbose. Of course, whether you prefer to be notified of its decision is a matter of taste. Because I would expect a game to install DirectX if it needs to, and quite often there's a checkbox to say whether or not it should do this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |