Purpose

.SetColors() method allows you to change the object colours, overriding those set in the PIV file.

Object Type

Client

Syntax

Variable = Client.SetColors("<Object>","Foreground","Background")
 

Operation

Variable is a numeric scratch variable for the return code value
Object
is the object name that the colour change affects.
Foreground
is the foreground colour of the object.
Background
is the background colour of the object.

Remarks

The list of object names can be obtained by looking at the Target Group drop-down list in the Palette Settings section on the PROIV Default Properties window. Click here to view an example screenshot of the PROIV Default Properties window. Use the entry in the drop-down list but omit the "palette entry data" text for the <object> name.

Example

To set the colour of icons in the client to have a white foreground on a black background:

      #RC = Client.SetColors("Icons","White","Black")

 

 

Comment on this topic

Topic ID: 510116