class csInputLine : public csComponent The Input Line class implements a rectangular are where user can enter any text
The Input Line class implements a rectangular are where user can enter any text. The class has a method called IsValidChar() which can be overriden to implement specific needs, for example if you would like to implement a input line which accepts only numbers you can just override the method IsValidChar() and analyze entered characters. There is also a more general method called IsValidString() which checks the just-modified string for correctness. If method decides that string is incorrect, the changes are undone.
int maxlen
int firstchar
int cursorpos
csRect cursorrect
bool cursorvis
int selstart
bool insert
int textx
csInputLine(csComponent *iParent, int iMaxLen = CSIL_DEFAULTLENGTH, csInputLineFrameStyle iFrameStyle = csifsThickRect)
virtual void SetText(char *iText)
virtual void Draw()
virtual bool HandleEvent(csEvent &Event)
virtual void SetState(int mask, bool enable)
void SetSelection(int iStart, int iEnd)
void SetCursorPos(int NewPos, bool ExtendSel)
virtual bool IsValidPos(int NewPos)
virtual bool IsValidChar(char iChar)
virtual bool IsValidString(char *iText)
void DeleteSelection()
int GetCharX(int iNum)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de