Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csSpinBox Class Reference

The spinbox class is a combination of an input line and a bi-directional arrow button which can be used to switch input line contents back and forth between a set of predefined values. More...

#include <csspinbx.h>

Inheritance diagram for csSpinBox:

csInputLine csComponent List of all members.

Public Methods

 csSpinBox (csComponent *iParent, csInputLineFrameStyle iFrameStyle=csifsThickRect)
 Create spin box object.

virtual ~csSpinBox ()
 Destructor.

virtual void Draw ()
 Draw the spin box.

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

void SetLimits (int iMin, int iMax, char *iFormat="%d")
 Set spin box type to numerical and set spin limits.

void SetValue (int iValue)
 Set spin box content.<. More...

int InsertItem (char *iValue, int iPosition)
 Insert a item into spinbox (same as csSpinBoxInsertItem message).

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


Detailed Description

The spinbox class is a combination of an input line and a bi-directional arrow button which can be used to switch input line contents back and forth between a set of predefined values.


Member Function Documentation

void csSpinBox::SetValue ( int iValue )
 

Set spin box content.<.

p> If spin box type is numerical, the iValue parameter is the number that will be set in entry field (after it will be clipped to Min..Max), if spin box type is enumerated, iValue is the ordinal of value to be set.


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