Switch to standard view 
  Sybase logo
 
 
 



 
MDI Menus: Facts And Guidelines

Description: Facts and guidelines regarding the use of MDI application menus:

  1. The MDI frame should always have a menu. (G)
  2. If the currently active sheet does not have a menu, then the menu and toolbar (if any) associated with the last active sheet remains in place and operative while that previous sheet remains open. (F) Moral: if any one sheet has a menu, then all sheets should have a menu. (G)
  3. If the currently active sheet has a menu but no toolbar, and the previously active (and still open) sheet has both a menu and a toolbar, then the menu displayed will be the menu associated with the currently active sheet, but the menu toolbar displayed will be the toolbar for the previously active sheet. (F) Moral: if any one sheet has a menu toolbar, then all sheets should have a menu toolbar. (G)
  4. Menu toolbars only work on MDI frame and MDI sheet windows. If you open a non-MDI window with a menu that has a toolbar, the toolbar will not show. (F)
  5. Menu toolbar buttons map directly to menu items. Clicking a menu toolbar button is the same as clicking on it's corresponding menu item (or pressing the accelerator key for that item.) (F)
  6. Disabling a menu item will disable its toolbar button as well -- but will not change the appearance of the button. If you want the button to "look" disabled, you must do this programmatically. (F)
  7. Hiding a sub menu item does not cause its toolbar button to disappear or to be disabled. If you want the button to disappear or be disabled, you must do this programmatically. (F)
  8. Hiding or disabling a main menu item does not cause sub menu item toolbar buttons to disappear: however, it does disable them. Again, to make the buttons "look" disabled, you must do this programmatically. (F)
  9. A double toolbar effect will be achieved if you have a menu with a toolbar on both the frame and the sheet. You can align these toolbars any way that you like. (F)
  10. If both the sheet and the frame have menu toolbars, and the sheet is open, then the menu that is displayed will be the menu for the sheet, but both toolbars will appear and be operative. (F)
  11. If the main menu item under which you wish your open sheet list to be displayed does not have ANY sub menu items under it, the open sheet list will not appear there. To make it appear there, either (a) add some sub menu items under the main menu item or (b) add a single menu item with text consisting of a single dash (i.e., - ) as a sub menu item. (F)

  Legend:

Menu Toolbar Attribute Cheat Sheet:




A
t
t
r
i
b
u
t
e
s
Object
Application
Window
Menu
ToolbarFrameTitle
ToolbarAlignment 
ToolbarItemDown
ToolbarPopMenu  
ToolbarHeight
ToolbarItemDownName
ToolbarSheetTitle
ToolbarVisible
ToolBarItemIndex
ToolbarText
ToolbarWidth
ToolbarItemName
ToolbarTips
ToolbarX
ToolbarItemOrder
ToolbarUserControl
ToolbarY
ToolbarItemSpace


ToolbarItemText


ToolbarItemVisible   


Hint: When in a script, use the Object Browser to paint attributes.

Correction to online help: Window toolbar attributes apply to both MDI frame and Sheet windows. However, Window toolbar attributes are ignored if the window is not a frame or is not opened as a Sheet. 



Back to Top
© Copyright 2010, Sybase Inc.