Label is a very simple widget for creating both static and dynamic textual labels.
Label is a very simple widget for creating both static and dynamic textual labels. It can display multi-line text with automatic wordwrapping. It treats newline characters as hard line breaks.The label can automatically resize itself to the length and height of the text and can render the text with transparent background which is perfect for static text because it minimizes the chances of redraw but if you want a label that changes dynamically (for example to display the value of a slider or the current time) this doesn't work to well because when the text changes and the label is redrawn the old text can show through. In that case you should clear the D_AUTOSIZE flag, set the text's size to the maximum length of the text you expect to display and set the text background with the SetTextMode() function.
note: the autosize option doesn't work well with non left-aligned labels.
Alphabetic index Hierarchy of classes