vPane

From EDM2
Jump to: navigation, search

The vPane class serves as a base class for various pane objects contained by the vCmdWindow class. There are no methods or services provided by the vPane class that you need to use directly, but the class is used extensively by V internally, and understanding its concepts are important to using V.

There are four types of panes used by V in a vCmdWindow, including menu panes, canvas panes, command panes and status panes. To add a pane to a window, you will first define the contents of the pane (menu, commands, status info) using static arrays, then construct an instance of the pane with new vWhateverPane. Then you add the instance to the window using AddPane.

Note that using the canvas panes is described in the [Drawing] page of the tutorial. The commands used with a command pane are described in the [commands] page, while menus and status bars are covered in vMenu and vStatus.

Canvas Pane

Header:
<v/vcanvas.h>
Class name:
vCanvasPane
Constructor:
userCanvasPane()

Command Pane

Header:
<v/vcmdpane.h>
Class name:
vCommandPane
Constructor:
vCommandPane(CommandObject* cmdbar)

Menu Pane

Header:
<v/vmenu.h>
Class name:
vMenuPane
Constructor:
vMenuPane(vMenu* menubar)

Status Pane

Header:
<v/vstatusp.h>
Class name:
vStatusPane
Constructor:
vStatusPane(vStatus* sbar)

See Also

CommandObject, vCanvasPane, vCmdWindow, vCommandPane, vMenu, vStatus