VPane: Difference between revisions
Created page with "The <tt>vPane</tt> class serves as a base class for various pane objects contained by the <tt>[vcmdwin.htm vCmdWindow]</tt> class. There are no methods or services provided by th..." |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The <tt>vPane</tt> class serves as a base class for various pane objects contained by the <tt> | {{DISPLAYTITLE:vPane}} | ||
The <tt>vPane</tt> class serves as a base class for various pane objects contained by the <tt>vCmdWindow</tt> class. There are no methods or services provided by the <tt>vPane</tt> 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 <tt>vCmdWindow</tt>, 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 <tt>new vWhateverPane</tt>. Then you add the instance to the window using <tt>AddPane</tt>. | There are four types of panes used by '''''V''''' in a <tt>vCmdWindow</tt>, 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 <tt>new vWhateverPane</tt>. Then you add the instance to the window using <tt>AddPane</tt>. | ||
Note that using the canvas panes is described in the [ | 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 <tt>vMenu</tt> and <tt>vStatus</tt>. | ||
==Canvas Pane== | ==Canvas Pane== | ||
;Header: <tt><v/vcanvas.h></tt> | |||
; | ;Class name: vCanvasPane | ||
: <tt> | ;Constructor: <tt>userCanvasPane()</tt> | ||
; | |||
: vCanvasPane | |||
; | |||
: <tt>userCanvasPane()</tt> | |||
==Command Pane== | ==Command Pane== | ||
;Header: <tt><v/vcmdpane.h></tt> | |||
; | ;Class name: vCommandPane | ||
: <tt><v/vcmdpane.h></tt> | ;Constructor: <tt>vCommandPane(CommandObject* cmdbar)</tt> | ||
; | |||
: vCommandPane | |||
; | |||
: <tt>vCommandPane(CommandObject* cmdbar)</tt> | |||
==Menu Pane== | ==Menu Pane== | ||
;Header: <tt><v/vmenu.h></tt> | |||
; | ;Class name: vMenuPane | ||
: <tt> | ;Constructor: <tt>vMenuPane(vMenu* menubar)</tt> | ||
; | |||
: vMenuPane | |||
; | |||
: <tt>vMenuPane(vMenu* menubar)</tt> | |||
==Status Pane== | ==Status Pane== | ||
;Header: <tt><v/vstatusp.h></tt> | |||
; | ;Class name: vStatusPane | ||
: <tt> | ;Constructor <tt>vStatusPane(vStatus* sbar)</tt> | ||
; | |||
: vStatusPane | |||
; | |||
==See Also== | ==See Also== | ||
CommandObject, vCanvasPane, vCmdWindow, vCommandPane, vMenu, vStatus | |||
[[Category:V C++ GUI Framework]] | |||
[[Category: |
Latest revision as of 18:52, 6 January 2023
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