|
Introduction
Containers Layouts Widgets
|
Widgets -> labelTo create a label, use the following syntax: $l = label("Text" [, properties]);
Instead of plain text strings, the text can also be in HTML code. For example: $htmlString = '<html>This is <b>bold</b> and <i>italic</i> and <u>underline</u>.</html>'; $mylabel = label($htmlString); # add $mylabel to some container.. However, HTML support is limited to HTML3.2 only. Images can also be shown (in labels, radiobuttons, checkboxes and buttons) using HTML tags. To specify an image source, the tag is: $str = '<html><image src=file:somefile.jpg></html>'; $l = label($str); # Replace the bolded "somefile.jpg" to the actual image filename you want. Properties
These properties are optional and can be in any order. Related commands and functions
|