(new in Rev4.00)
MQLabel class manages a label to display a string. It inherites MQWidgetBase class.
Please refer the inherited class about member functions declared in the inherited class.
Class | |
MQLabel | Constructor |
~MQLabel | Destructor |
Member functions | |
GetText | Get a displayed string |
SetText | Set a displayed string |
GetAlignment | Get an alignment for a text |
SetAlignment | Set an alignment for a text |
GetVerticalText | Get a vertical text |
SetVerticalText | Set a vertical text |
GetWordWrap | Get a word wrap |
SetWordWrap | Set a word wrap |
GetFrame | Get a frame to display |
SetFrame | Set a frame to display |
MQLabel::MQLabel();
MQLabel::MQLabel(int id);
It is a constructor.
virtual MQLabel::~MQLabel();
This method is a destructor. It is defined as a virtual function.
std::wstring MQLabel::GetText();
It returns a displayed string.
void MQLabel::SetText(const std::wstring& text);
It specifies a displayed string.
MQLabel::MQLabelTextAlignment MQLabel::GetAlignment();
It returns an alignment for displaying a text.
void MQLabel::SetAlignment(MQLabelTextAlignment value);
It specifies an alignment for displaying a text.
bool MQLabel::GetVerticalText();
It returns whether a text is displayed horizontally(false) or vertically(true).
void MQLabel::SetVerticalText(bool value);
It specifies whether a text is displayed horizontally(false) or vertically(true).
bool MQLabel::GetWordWrap();
It returns whether a long sentence that cannot be with in a single line is displayed in multiple lines by separating between words.
void MQLabel::SetWordWrap(bool value);
It specifies whether a long sentence that cannot be with in a single line is displayed in multiple lines by separating between words.
bool MQLabel::GetFrame();
It returns whether to display a frame outside a text.
void MQLabel::SetFrame(bool value);
It specifies whether to display a frame outside a text.