Jump to content

VCmdWindow: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 2: Line 2:


==Synopsis==
==Synopsis==
; '''Header:'''
; '''Header:'''
: <tt>[vquickr.htm#vCmdWindow <v/vcmdwin.h>]</tt>
: <tt>[vquickr.htm#vCmdWindow <v/vcmdwin.h>]</tt>
Line 13: Line 12:


==Description==
==Description==
The <tt>vCmdWindow</tt> class is derived from the <tt>vWindow</tt> class. This class is intended as a class that serves as a main control window containing various <tt>vPane</tt> objects such as menu bars, canvases, and command bars. The main difference between the <tt>vCmdWindow</tt> class and the <tt>vWindow</tt> class is how they are treated by the host windowing system. You will normally derive your windows from the <tt>vCmdWindow</tt> class.
The <tt>vCmdWindow</tt> class is derived from the <tt>vWindow</tt> class. This class is intended as a class that serves as a main control window containing various <tt>vPane</tt> objects such as menu bars, canvases, and command bars. The main difference between the <tt>vCmdWindow</tt> class and the <tt>vWindow</tt> class is how they are treated by the host windowing system. You will normally derive your windows from the <tt>vCmdWindow</tt> class.


==Constructor==
==Constructor==


====vCmdWindow(char* title)====
vCmdWindow(char* title)


====vCmdWindow(char* title, int h, int w)====
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><nowiki> 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. </nowiki>
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><nowiki> 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. </nowiki>


==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 KeyIn(vKey key, unsigned int shift)====
virtual void MenuCommand(ItemVal itemId)
 
virtual void WindowCommand(ItemVal Id, ItemVal Val, CmdType Type)
====virtual void MenuCommand(ItemVal itemId)====
virtual void AddPane(vPane* pane)
 
virtual void GetPosition(int& left, int& top, int& width, int& height)
====virtual void WindowCommand(ItemVal Id, ItemVal Val, CmdType Type)====
virtual int GetValue(ItemVal itemId)
 
virtual void RaiseWindow(void)
====virtual void AddPane(vPane* pane)====
virtual void ShowPane(vPane* wpane, int OnOrOff)
 
virtual void SetValue(ItemVal itemId, int Val, ItemSetType what)
====virtual void GetPosition(int& left, int& top, int& width, int& height)====
virtual void SetString(ItemVal itemId, char* title)
 
virtual void SetTitle(char* title)
====virtual int GetValue(ItemVal itemId)====
virtual void UpdateView(vWindow* sender, int hint, void* pHint)
 
virtual void CloseWin()
====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()====


==See Also==
==See Also==
*vWindow


[vwindow.htm vWindow]
[[Category:V C++ GUI Framework]]
 
[[Category:Tools Articles]]

Revision as of 17:21, 1 March 2017

A class to show a window with various command panes.

Synopsis

Header:
[vquickr.htm#vCmdWindow <v/vcmdwin.h>]
Class name:
vCmdWindow
Hierarchy:
vBaseWindow ->[vwindow.htm vWindow] ->vCmdWindow
Contains:
[vdialog.htm vDialog], [vpane.htm 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()

See Also

  • vWindow