CForm Class Reference

A CForm object is a top-level window with no borders and no menubar. More...

#include <CForm.h>

Inheritance diagram for CForm:
CComponent CWindow

List of all members.

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.

Detailed Description

A CForm object is a top-level window with no borders and no menubar.


Constructor & Destructor Documentation

CForm::CForm (  ) 

Constructs a new, initially invisible window.

The window will not be focusable unless it is showing on the screen.


Member Function Documentation

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.

See also:
Validate
ILayoutManager

Reimplemented from CComponent.

void CForm::Pack (  ) 

Causes this CForm to be sized to fit the preferred size and layouts of its subcomponents.

The CForm will be validated after the layout is calculated.

void CForm::ProcessComponentKeyEvent ( SKeyEvent *  e  )  [virtual]

Processes events occurring on this component,.

Parameters:
e - the event
See also:
DispatchEvent

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

Parameters:
x - X coordinate of the object
y - Y coordinate of the object
See also:
Validate

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

Parameters:
width - the new width of the object
height - the new height of the object
See also:
Validate

Reimplemented from CComponent.

Reimplemented in CWindow.


The documentation for this class was generated from the following files:
Generated on Tue Jun 29 18:34:06 2010 for guilib by  doxygen 1.6.3