CTextEdit

#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

CTextEdit (CRect &size, CControlListener *listener, int tag, const char *txt = 0, CBitmap *background = 0, int style = 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

~CTextEdit ();

Destroys a textEdit object.


setText

1.0

void setText (char *txt);

Sets the current text.


getText

1.0

void getText (char *txt);

Returns the current text.


draw

1.0

void draw (CDrawContext*);

Called when this control object needs to be drawed.


mouse

1.0

void mouse (CDrawContext *context, CPoint& where);

Called when there is a mouse-click inside this control object. After a click the text can be edited.


setTextEditConvert

1.0

void setTextEditConvert (void (*stringConvert) (char *input, char *string));

Sets the value to string conversion routine.


setTextEditConvert

2.0

void CTextEdit::setTextEditConvert (float, char*, void *userData);

Sets the value to string conversion routine.


takeFocus

1.0

void takeFocus ();

-


looseFocus

1.0

void looseFocus ();

-


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.