tsc_LabelControl

A label control is a simple single line of text displayed in the prompt font.  It inherits from tsc_Control and has no user interaction.

Note: Prior to SC version 2.20, this control behaved somewhat strangely when using the form automatic layout.  With custom layout it behaved correctly.  Version 2.20 of Survey Core corrected this problem, however for compatibility reasons with any plugins built with an SDK prior to 2.20, it will continue to behave as before.

Public methods

See tsc_Control for base methods that apply to all controls and fields.

tsc_LabelControl  (x_Code text);

tsc_LabelControl  (x_Code identifier, const char* text);

The constructor supplies an x-code for the prompt text which also serves as a field identifier and the initial text to be displayed; optionally you can specify both independently.

tsc_String GetText() const;

Retrieves the text from the control.

void SetText(const char* newText);

void SetText(x_Code newText);

Changes the text on an existing control.