StaticText

Help Contents GUI programming StaticTexts StaticText
StaticTexts StaticTextDestroy

StaticText parent label
(StaticText parent label style pos size name)


outputs a new StaticText control on the parent (a Frame or a Graph, or if [] the main Graph).

label can be anything that can be converted to a word. That word is shown in the StaticText control.

style is the window style and can be a combination of the following constants:

wxALIGN_LEFT Align the text to the left

wxALIGN_RIGHT Align the text to the right

wxALIGN_CENTRE Center the text (horizontally)

wxST_NO_AUTORESIZE By default, the control will adjust its size to exactly fit to the size of the text when SetLabel is called. If this style flag is given, the control will not change its size (this style is especially useful with controls which also have wxALIGN_RIGHT or CENTER style because otherwise they won't make sense any longer after a call to SetLabel)

pos is the position of the StaticText (a list of two integer numbers, x and y),

size is the size of the StaticText (a list of two integer numbers, width and height).

Example:

s=(StaticText [][This is\
	a multiline\
	static\
	Text] wxAlign_centre [100 200][100 100][Text1])

Examples:

References:

StaticTexts StaticTextDestroy