|
Public Member Functions |
| CTextEdit (const CRect &size, CControlListener *listener, long tag, const char *txt=0, CBitmap *background=0, const long style=0) |
virtual | ~CTextEdit () |
virtual void | setText (char *txt) |
virtual void | getText (char *txt) const |
virtual void | draw (CDrawContext *pContext) |
| called if the view should draw itself
|
virtual void | mouse (CDrawContext *pContext, CPoint &where, long button=-1) |
| called if a mouse click event occurs
|
virtual void | setTextEditConvert (void(*editConvert)(char *input, char *string)) |
virtual void | setTextEditConvert (void(*editConvert2)(char *input, char *string, void *userDta), void *userData) |
virtual void | takeFocus (CDrawContext *pContext=0) |
| called if view should take focus
|
virtual void | looseFocus (CDrawContext *pContext=0) |
| called if view should loose focus
|
Public Attributes |
void * | platformFontColor |
void * | platformControl |
bool | bWasReturnPressed |
Protected Attributes |
void * | platformFont |
char | text [256] |
void(* | editConvert )(char *input, char *string) |
void(* | editConvert2 )(char *input, char *string, void *userData) |
Define a rectangle view where a text-value can be displayed and edited with a given font and color. The user can specify its convert function (from char to char). The text-value is centered in the given rect. A pixmap can be used as background.