A CForm
object is a top-level window with no borders and no menubar.
More...
#include <CForm.h>
Public Member Functions | |
CForm () | |
Constructs a new, initially invisible window. | |
void | Pack () |
Causes this CForm to be sized to fit the preferred size and layouts of its subcomponents. | |
virtual void | SetSize (INT16 width, INT16 height) |
Resizes this object so that it has width and height. | |
virtual void | SetLocation (INT16 x, INT16 y) |
Sets the location of the object relative to the parent. | |
virtual void | Invalidate () |
Invalidates the component. | |
virtual void | ProcessComponentKeyEvent (SKeyEvent *e) |
Processes events occurring on this component,. | |
Protected Member Functions | |
virtual void | OnClose () |
Removes this form from the screen and frees memory by deleting this object. |
A CForm
object is a top-level window with no borders and no menubar.
CForm::CForm | ( | ) |
Constructs a new, initially invisible window.
The window will not be focusable unless it is showing on the screen.
void CForm::Invalidate | ( | ) | [virtual] |
Invalidates the component.
The component and all parents above it are marked as needing to be laid out. This method can be called often, so it needs to execute quickly.
Reimplemented from CComponent.
void CForm::Pack | ( | ) |
void CForm::ProcessComponentKeyEvent | ( | SKeyEvent * | e | ) | [virtual] |
Processes events occurring on this component,.
e | - the event |
Reimplemented from CComponent.
void CForm::SetLocation | ( | INT16 | x, | |
INT16 | y | |||
) | [virtual] |
Sets the location of the object relative to the parent.
Note: Validate must be called on that component for compile new layout, if ILayoutManager is defined
x | - X coordinate of the object | |
y | - Y coordinate of the object |
Reimplemented from CComponent.
void CForm::SetSize | ( | INT16 | width, | |
INT16 | height | |||
) | [virtual] |
Resizes this object so that it has width and height.
Note: Validate must be called on that component for compile new layout, if ILayoutManager is defined
width | - the new width of the object | |
height | - the new height of the object |
Reimplemented from CComponent.
Reimplemented in CWindow.