Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csStatic Class Reference

The Static component class represents a decorative control (widget) which usually does not have functionality, but serves as a decoration. More...

#include <csstatic.h>

Inheritance diagram for csStatic:

csComponent csColorWheel List of all members.

Public Methods

 csStatic (csComponent *iParent, csComponent *iLink, const char *iText, csStaticStyle iStyle=csscsLabel)
 Create static component object (by default - a label) linked to another.

 csStatic (csComponent *iParent, csStaticStyle iStyle=csscsRectangle)
 Create static component object without text (by default - a rectangle).

 csStatic (csComponent *iParent, csPixmap *iBitmap)
 Create static bitmap object.

virtual ~csStatic ()
 Destroy the static object.

virtual void SetText (const char *iText)
 Set static component text.

virtual void Draw ()
 Draw the static component.

virtual bool HandleEvent (iEvent &Event)
 Handle input events.

virtual bool PostHandleEvent (iEvent &Event)
 Pre-handle input events.

virtual void SuggestSize (int &w, int &h)
 Return the recommended minimal size of static object.

void SetTextAlign (int iTextAlignment)
 Set text alignment (only for csscsText style).

void SetLink (csComponent *iLink)
 Set linked component.


Protected Methods

void Init (csStaticStyle iStyle)
bool IsHotKey (iEvent &Event)
void CheckUp ()

Protected Attributes

int underline_pos
csStaticStyle style
csComponentlink
csPixmapBitmap
int TextAlignment
csComponentoldKO
bool linkactive
bool linkdisabled

Detailed Description

The Static component class represents a decorative control (widget) which usually does not have functionality, but serves as a decoration.

Static controls can be created of many different styles (see csStaticStyle definition above), and they can look completely different one from another. The only common 'function' of all static controls is that they can act as 'dialog labels', i.e. the text assigned to a static component can contain a 'hot' letter, and if you press 'Alt+letter' the first selectable component following the static one will be activated.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000