wMenuBarCtrl

A menubar control is a toolbar that simulates the behavior of standard menubar but can be placed everywhere. For example, in the rebar control.

Superclass:wControl
Seealso:wMenuBar
Events:wCommandEvent
wCommandEventDescription
wEvent_MenuA menu item is selected.

Procs

proc wMenuBarCtrlEnableMenuKey(flag = true) {...}{.raises: [Exception], tags: [RootEffect].}
A static method that enables or disables <F10>, <ALT>, and accelerator keys on all menubar controls. By default, the standard menubar (if exists) will deal with these events.
proc setStatusBar(self: wMenuBarCtrl; statusBar: wStatusBar) {...}{.inline, raises: [],
    tags: [].}
Associates a status bar with the menubar control to display the help text.
proc setMenuBar(self: wMenuBarCtrl; menuBar: wMenuBar) {...}{.
    raises: [wNilAccess, Exception], tags: [RootEffect].}
Tells the menubar control to show the given menubar.
proc init(self: wMenuBarCtrl; parent: wWindow; id = wDefaultID; menuBar: wMenuBar = nil;
         statusBar: wStatusBar = nil; pos = wDefaultPoint; size = wDefaultSize;
         style: wStyle = 0) {...}{.raises: [wNilAccess, wWindowError, wCursorError,
                                  wBrushError, Exception, IndexDefect, wFontError],
                          tags: [RootEffect].}
Initializes a menubar control.
proc MenuBarCtrl(parent: wWindow; id = wDefaultID; menuBar: wMenuBar = nil;
                statusBar: wStatusBar = nil; pos = wDefaultPoint; size = wDefaultSize;
                style: wStyle = 0): wMenuBarCtrl {...}{.inline, discardable, raises: [
    wNilAccess, wWindowError, wCursorError, wBrushError, Exception, IndexDefect,
    wFontError], tags: [RootEffect].}
Constructor.

Methods

method getBestSize(self: wMenuBarCtrl): wSize {...}{.inline, raises: [Exception],
    tags: [RootEffect].}
Returns the best size for the tool bar.
method getDefaultSize(self: wMenuBarCtrl): wSize {...}{.inline, raises: [Exception],
    tags: [RootEffect].}
Returns the default size for the tool bar.
method release(self: wMenuBarCtrl) {...}{.raises: [], tags: [].}
Release all the resources during destroying. Used internally.