#include <vstcontrols.h>
class CTextEdit : public CParamDisplay;
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.
CTextEdit |
1.0 |
Creates a textEdit object.
size |
The coordinates of the enclosing rectangle, relative to the parent frame. |
---|---|
listener |
The object responsible for handling events in this control. |
tag |
The index of this control. |
txt |
|
background |
An optional background pixmap. |
style |
3D effects or shadow effects can be addded by using one of the values in
CControlEnum . |
~CTextEdit |
1.0 |
Destroys a textEdit object.
setText |
1.0 |
Sets the current text.
getText |
1.0 |
Returns the current text.
draw |
1.0 |
Called when this control object needs to be drawed.
mouse |
1.0 |
Called when there is a mouse-click inside this control object. After a click the text can be edited.
setTextEditConvert |
1.0 |
Sets the value to string conversion routine.
setTextEditConvert |
2.0 |
Sets the value to string conversion routine.
takeFocus |
1.0 |
-
looseFocus |
1.0 |
-