CWinCtrlText

Script: TEXT

It is a control for displaying text .

If you want to change the text color,insert line feeds,or change the font type, please use the CWinCtrlRichText .

Callbacks arriving at CWindowBase

This control’s style is set NOHIT flag as default. If you want to receive onDrag callback,you need to set HIT flag to STYLE property.

void onClick(CWinCtrlBase cCtrl)

void onHold(CWinCtrlBase cCtrl)

void onBeginDrag(CWinCtrlBase cCtrl,Vector2 pos)

void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)

bool onDragRender(CWinCtrlBase cCtrl,Transform transform)

void onDrop(CWinCtrlBase cCtrl,CWindowBase cDragWindow,CWinCtrlBase cDragCtrl)

void onDropGround(CWinCtrlBase cCtrl)

Functions / Properties

None

Example of use

CWinCtrlText   ctrlName = find<CWinCtrlText>(TEXT_Name);
ctrlName.caption = "Mike";