logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

GUIToolkit::TextBox Class Reference

Single- og multi-line text box. More...

#include <TextBox.h>

Inheritance diagram for GUIToolkit::TextBox:

GUIToolkit::Component List of all members.

Public Types

enum  TextBoxType { singleLine, multiLine }
 Possible textbox types: singleLine or multiLine.


Public Methods

 TextBox ()
 Constructor. Defaults to singleLine.

 TextBox (TextBoxType myType)
 Constructor. Set type to singleLine or multiLine.

 ~TextBox ()
 Destructor.

void PutInWinForm (WinForm *WF, int x0, int x1, int y0, int y1)
 Place on winform.

void setText (std::string s)
 Set text.

void setText (float f)
 Set text to a float.

void addText (std::string s)
 Adds text.

void clearText (std::string s)
 Clears text.

float getFloatVal ()
 Returns the floating point value of the text.

void HandleEvents (event e)
 Set user event handler.

void setFloatLimit (float from, float to)
 Set limits on the acceptable float values. (Used when input is validated).

bool validateFloat ()
 Validates whether the text is a floating pointer number in the interval set by setFloatLimit.

std::string * getText ()
 Returns text.

void show ()
 Shows text box.

void hide ()
 Hides text box.


Detailed Description

Single- og multi-line text box.

Definition at line 22 of file TextBox.h.


The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen