VCmdWindow: Difference between revisions
Appearance
m Ak120 moved page The V C++ GUI Framework:vCmdWindow to VCmdWindow |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:vCmdWindow}} | |||
A class to show a window with various command panes. | A class to show a window with various command panes. | ||
==Synopsis== | ==Synopsis== | ||
; | ;Header: <tt><v/vcmdwin.h></tt> | ||
: <tt> | ;Class name: vCmdWindow | ||
; | ;Hierarchy: vBaseWindow ->[[vWindow]] ->vCmdWindow | ||
: vCmdWindow | ;Contains: [[vDialog]], [[vPane]] | ||
; | |||
: vBaseWindow ->[ | |||
; | |||
==Description== | ==Description== | ||
Line 15: | Line 12: | ||
==Constructor== | ==Constructor== | ||
;vCmdWindow(char* title) | |||
;vCmdWindow(char* title, int h, int w):These construct a <tt>vCmdWindow</tt> with a title and a size specified in pixels. You can use <tt>theApp->DefaultHeight()</tt> and <tt>theApp->DefaultWidth()</tt> in the call to the constructor to create a ''standard'' size window. Note that the height and width are of the canvas area, and not the entire window. | |||
These construct a <tt>vCmdWindow</tt> with a title and a size specified in pixels. You can use <tt>theApp->DefaultHeight()</tt> and <tt>theApp->DefaultWidth()</tt | |||
==Inherited Methods== | ==Inherited Methods== | ||
See the section <tt>vWindow</tt> for details of the following methods. | See the section <tt>[[vWindow]]</tt> for details of the following methods. | ||
:virtual void KeyIn(vKey key, unsigned int shift) | |||
:virtual void MenuCommand(ItemVal itemId) | |||
:virtual void WindowCommand(ItemVal Id, ItemVal Val, CmdType Type) | |||
:virtual void AddPane(vPane* pane) | |||
:virtual void GetPosition(int& left, int& top, int& width, int& height) | |||
:virtual int GetValue(ItemVal itemId) | |||
:virtual void RaiseWindow(void) | |||
:virtual void ShowPane(vPane* wpane, int OnOrOff) | |||
:virtual void SetValue(ItemVal itemId, int Val, ItemSetType what) | |||
:virtual void SetString(ItemVal itemId, char* title) | |||
:virtual void SetTitle(char* title) | |||
:virtual void UpdateView(vWindow* sender, int hint, void* pHint) | |||
:virtual void CloseWin() | |||
[[Category:V C++ GUI Framework]] | [[Category:V C++ GUI Framework]] |
Latest revision as of 22:05, 9 April 2020
A class to show a window with various command panes.
Synopsis
- Header
- <v/vcmdwin.h>
- Class name
- vCmdWindow
- Hierarchy
- vBaseWindow ->vWindow ->vCmdWindow
- Contains
- vDialog, vPane
Description
The vCmdWindow class is derived from the vWindow class. This class is intended as a class that serves as a main control window containing various vPane objects such as menu bars, canvases, and command bars. The main difference between the vCmdWindow class and the vWindow class is how they are treated by the host windowing system. You will normally derive your windows from the vCmdWindow class.
Constructor
- vCmdWindow(char* title)
- vCmdWindow(char* title, int h, int w)
- These construct a vCmdWindow with a title and a size specified in pixels. You can use theApp->DefaultHeight() and theApp->DefaultWidth() in the call to the constructor to create a standard size window. Note that the height and width are of the canvas area, and not the entire window.
Inherited Methods
See the section vWindow for details of the following methods.
- virtual void KeyIn(vKey key, unsigned int shift)
- virtual void MenuCommand(ItemVal itemId)
- virtual void WindowCommand(ItemVal Id, ItemVal Val, CmdType Type)
- virtual void AddPane(vPane* pane)
- virtual void GetPosition(int& left, int& top, int& width, int& height)
- virtual int GetValue(ItemVal itemId)
- virtual void RaiseWindow(void)
- virtual void ShowPane(vPane* wpane, int OnOrOff)
- virtual void SetValue(ItemVal itemId, int Val, ItemSetType what)
- virtual void SetString(ItemVal itemId, char* title)
- virtual void SetTitle(char* title)
- virtual void UpdateView(vWindow* sender, int hint, void* pHint)
- virtual void CloseWin()