CWinCtrlRichText

Script: RICHTEXT

It is a control for displaying rich text.

It is possible to change the text color , insert some texture part, and change the font type

Callbacks arriving at :class:`CWindowBase<CWindowBase>`

void onClick(CWinCtrlRichText cCtrl,CRichTextOne cText)

This callback is called when you touch the rich text part of the texture command ( \t ) or the window command( \w ) . refer to here .

void onHold(CWinCtrlBase cCtrl)

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

class CRichTextOne

Functions / Properties

This is the argument passed to the click event. By examining the member, it is possible to determine where clicked .

CRichTextOne.e_Cmd cmd { get; }

e_Cmd.String

text: This text part does not trigger a click event.

e_Cmd.Window

Window: \w command part is clicked.

The following properties contain valid values.

userId

windowId

e_Cmd.Texture

Texture: \t command part is clicked.

The following properties contain valid values.

userId

texId

partId

UInt32 userId { get; }

Contains the user ID set in the caption. If the user ID is omitted, 0 is used.

UInt32 windowId { get; }

Gets the window ID specified by \w command .

UInt32 texId { get; }

Gets the texture ID specified by \t command .

UInt32 partId { get; }

Gets the texture part ID specified by \t command .