back to gui
wxStaticText
generated from ../src/mod_gui/control/sttext.cpp
A static text control displays one or more lines of read-only text.
Constants
Style
| Name |
Description |
| ALIGN_LEFT |
|
| ALIGN_RIGHT |
|
| ALIGN_CENTER |
|
| NO_AUTORESIZE |
|
Constructor
wxStaticText
wxStaticText()
wxStaticText(Parent,
Id,
Text,
Position = wxDefaultPosition,
Size = wxDefaultSize,
Style = 0)
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of the static text. This can't be null.
|
| Id |
Integer |
|
The unique identifier.
|
| Text |
String |
|
The text of the static text
|
| Position |
wxPoint |
wxDefaultPosition |
The position of the static text.
|
| Size |
wxSize |
wxDefaultSize |
The size of the static text.
|
| Style |
Integer |
0 |
The style of the static text. See styles
|
Constructs a new wxStaticText object
Properties
| Name |
Type |
Description |
| label |
String |
Get/Sets the text.
|
Methods
create
create(Parent,
Id,
Text,
Position = wxDefaultPosition,
Size = wxDefaultSize,
Style = 0) : Boolean
| Name |
Type |
Default |
Description |
| Parent |
wxWindow |
|
The parent of the static text. This can't be null.
|
| Id |
Integer |
|
The unique identifier.
|
| Text |
String |
|
The text of the static text
|
| Position |
wxPoint |
wxDefaultPosition |
The position of the static text.
|
| Size |
wxSize |
wxDefaultSize |
The size of the static text.
|
| Style |
Integer |
0 |
The style of the static text. See styles
|
Constructs a new wxStaticText object
wrap
wrap(Width)
| Name |
Type |
Default |
Description |
| Width |
Integer |
|
|
This functions wraps the controls label so that each of its lines becomes
at most width pixels wide if possible (the lines are broken at words
boundaries so it might not be the case if words are too long). If width
is negative, no wrapping is done.