Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CmStatusBar Class Reference

Status Bar Object. More...

Inheritance diagram for CmStatusBar:

CmObject CmMGUI

Public Methods

 CmStatusBar (CmContainer *parent, const char *text=0, int max=10, MTFont font=DEFAULT_FONT)
void setMax (int max)
void setWidth (int width)
 Sets the object's width.

void setPos (int pos)
void setSliderColor (CmColor *col)
void setSliderColorShift (int perc)
void setSliderRGB (int r, int g, int b)

Detailed Description

Status Bar Object.


Constructor & Destructor Documentation

CmStatusBar::CmStatusBar CmContainer   parent,
const char *    text = 0,
int    max = 10,
MTFont    font = DEFAULT_FONT
 


Member Function Documentation

void CmStatusBar::setMax int    max
 

void CmStatusBar::setPos int    pos
 

void CmStatusBar::setSliderColor CmColor   col
 

void CmStatusBar::setSliderColorShift int    perc
 

void CmStatusBar::setSliderRGB int    r,
int    g,
int    b
 

void CmStatusBar::setWidth int    width
 

Sets the object's width.

The object's width is locked so it cannot be resized horizontally due to window resizing or forced attachments.

By applying this method to a composite object, you actually lock the width of the 'terminal' object. For example, if you setWidth() an OptionEdit object you lock the size of the Edit object inside. If you need to setWidth() the entire OptionEdit object then you should use setCompositeWidth instead.

Parameters:
width New desired width.
See also:
setSize, setHeight, getWidth, getHeight, setCompositeSize, setCompositeWidth, setCompositeHeight, getCompositeWidth, getCompositeHeight

Reimplemented from CmObject.


Generated on Sun Jun 29 13:03:08 2003 for MGui API by doxygen1.3-rc2