Jump to content

VPane: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
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>[vcmdwin.htm 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'''''.
{{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 [drawing.htm Drawing] page of the tutorial. The commands used with a command pane are described in the [commands.htm commands] page, while menus and status bars are covered in <tt>[vmenu.htm vMenu]</tt> and <tt>[vstatus.htm vStatus]</tt>.
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>
; '''Header:'''
;Class name: vCanvasPane
: <tt>[vquickr.htm#vCanvasPane <v/vcanvas.h>]</tt>
;Constructor: <tt>userCanvasPane()</tt>
; '''Class name:'''
: vCanvasPane
; '''Constructor:'''
: <tt>userCanvasPane()</tt>


==Command Pane==
==Command Pane==
 
;Header: <tt><v/vcmdpane.h></tt>
; '''Header:'''
;Class name: vCommandPane
: <tt><v/vcmdpane.h></tt>
;Constructor: <tt>vCommandPane(CommandObject* cmdbar)</tt>
; '''Class name:'''
: vCommandPane
; '''Constructor:'''
: <tt>vCommandPane(CommandObject* cmdbar)</tt>


==Menu Pane==
==Menu Pane==
 
;Header: <tt><v/vmenu.h></tt>
; '''Header:'''
;Class name: vMenuPane
: <tt>[vquickr.htm#vMenu <v/vmenu.h>]</tt>
;Constructor: <tt>vMenuPane(vMenu* menubar)</tt>
; '''Class name:'''
: vMenuPane
; '''Constructor:'''
: <tt>vMenuPane(vMenu* menubar)</tt>


==Status Pane==
==Status Pane==
 
;Header: <tt><v/vstatusp.h></tt>
; '''Header:'''
;Class name: vStatusPane
: <tt>[vquickr.htm#vStatus <v/vstatusp.h>]</tt>
;Constructor <tt>vStatusPane(vStatus* sbar)</tt>
; '''Class name:'''
: vStatusPane
; '''Constructor:'''
: <tt>vStatusPane(vStatus* sbar)</tt>


==See Also==
==See Also==
CommandObject, vCanvasPane, vCmdWindow, vCommandPane, vMenu, vStatus


[cmdobj.htm CommandObject], [vcanvas.htm vCanvasPane], [vcmdwin.htm vCmdWindow], [vcmdpane.htm vCommandPane], [vmenu.htm vMenu], [vstatus.htm vStatus]
[[Category:V C++ GUI Framework]]
 
[[Category:Tools Articles]]

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