Presentation Graphics Overview Buttons and IconsPrint this Page  Presentation
Buttons and Icons
In WebPAC Pro, buttons are used extensively for such actions as submitting searches, canceling actions, and changing the record view (from regular to MARC, for example). The Web Options used to designate which image and/or text to associate with an action begin with BUT_ and ICON_ .

BUT_ Web Options provide an easy way to designate a specific image to use for an action. All BUT_ Web Options accept a path and graphic file name as their value, as in this example:

BUT_PAT_CANCELALL /screens/pat_cancelall.gif

This option tells WebPAC that the image, named pat_cancelall.gif, is located in the screens directory. In-line style elements can be added to the resulting image tag, as shown below. Note the closing quote mark is omitted from the style declaration.

BUT_ PAT_CANCELALL /screens/pat_cancelall.gif" style="display:none

ICON_ Web Options provide a simplified way to format the HTML image tag associated with specific links.
All ICON_ Web Options have values in HTML, defining either the text or an image to use as the link, as in the following example:

ICON_CANCEL <img src="/screens/cancel.gif" alt="Cancel" border="0" class="button" />

ICON_ Web Options may also have a combination of an image and text, as in the following example:

ICON_856LINK <img src="/screens/bullet.gif" alt="Bullet Point" border="0" style="margin-right:5px"/>Website

A few images may occur as both BUT_ and ICON_ Web Options, as shown in the example below.

ICON_SUBMIT <img src="/screens/submit.gif" alt="Submit" border="0" class="button" />


BUT_SUBMIT /screens/submit.gif

In these cases, the older BUT_ Web Option will eventually be completely replaced by the ICON_ Web Option.