setbannericon
ICONTEXT
,
DATABASE

The setbannericon statement sets the icon on the right side of the toolbar banner.


Parameters

This statement has two parameters:

icontext – is the text for the icon. This is usually rich text using the Font Awesome tag, or "" for no icon.

database – is the database where the progress is to be displayed. This parameter is optional, if omitted or empty, the current database is used.


Description

The setbannericon statement sets the icon on the right side of the toolbar banner. There is one parameter, the text to display. This is usually rich text using the Font Awesome tag. This example displays a lock icon on the right side of the toolbar banner.

setbannericon "<char:0xf023:FontAwesome>"

This example clears any icon from the banner.

setbannericon ""

Note: The icon will appear in all data windows associated with the current database, not just the current window. You can also specify that the message be displayed in the toolbar banner of a different database, like this:

setbannericon "<char:0xf023:FontAwesome>","Checkbook"

To find out what the current banner icon is, use the dbinfo( function with the bannericon option.

Warning: Panorama itself uses the banner icon to display the status of shared databases. So if you are using (or plan to use) shared databases, you should generally avoid using the banner icon feature yourself.

Displaying the Banner Icon in a Form

The banner icon is normally displayed in the toolbar, but what if you’ve hidden the toolbar? In that case, you may want to display the icon within the body of a form. To do that, create a Text Display object and use the formula catcherror("",_bannerIcon). You’ll also need to enable the Rich Text option, as shown below.

If you want to be able to click on the icon, put the popupsharingmenu statement in the code of the Text Display object. This statement must have a parameter of "" to make the menu appear.

You can place the icon anywhere you want in the form. It will work exactly the same as it does in the tool bar banner.


See Also


History

VersionStatusNotes
10.2NewNew in this version.