Purpose

.Graphic allows you to specify the graphic file to be applied to certain objects.
 

Syntax

Setting:          ObjectReference.Graphic = Value

Retrieving:      Variable = ObjectReference.Graphic
 

Operation

ObjectReference is the Tag Name of the object
Value is the graphic filename string
Variable is an alphanumeric variable

 

Remarks

A graphic can have three variants (in addition to the base version) that PROIV will automatically use without programmer intervention unless overridden by specific Property Logic statements. Each variant has a different file name suffix, but identical file extension and location to that of the base version.

The retrieving command will cause the variable to contain the value in the same format it was specified.
 

Example

To set the graphic for the icon on a combo box (Tag Name = CUSTOMERNUMBER:

CUSTOMERNUMBER.Graphic = "red.jpg"


The example above also primes the Windows Client to use
red_1.jpg for the MouseOverGraphic,
red_2.jpg for the MousePressedGraphic, and
red_3.jpg for the DisabledGraphic,
unless those properties have already been set for the object.


To retrieve the file name used for the icon (Tag Name = CANCELBUTTON):

$BUTTON_ICON = CANCELBUTTON.Graphic
 

Comment on this topic

Topic ID: 510062