3e. Text markup (HTML) and tooltips in your dialogs

In the labels for dialogs, not only plain text can be used but also HTML (HyperText Markup Language)(for a HTML tutorial, see http://www.htmlgoodies.com/).

The advantage of including HTML is that the appearance of the dialogs can be customized even further. In the example below, other fonts than the standard Arial are used. It is also possible to display images on the dialogs by using the <IMG SRC="..."> command.

In webpages, a HTML page starts with the <HTML> tag and ends with the </HTML> tag.  A difference of using HTML for webpages and HTML in the QSA labels, is that the use of HTML does not have to be announced in the QSA script. Another difference is that opening tags do not always have to be followed by a closing tag.

 

As can be seen from the code, the 'beautifulDialog' object has a property 'toolTip'. In this case, the tooltip is set to "This is the tooltip for the dialog". Most other components for dialogs have the tooltip property as well. This makes it possible to add explaining text for a specific object on the dialog.

The code as shown above results in the following dialog:

 

Next: 4. Filesystem related scripting
Index

 

.