Siebel Object Interfaces Reference > Interfaces Reference > Control Methods >

SetProperty


The SetProperty method sets visual properties of a control.

Syntax

controlVar.SetProperty(propName, propValue)

Argument
Description
propName
The name of the property to be set, as described in the following table
propValue
The value to assign to the property, as described in the following table

Returns

Not applicable

Usage

SetProperty can be used with the following controls: CheckBox, ComboBox, TextBox, and TextArea.

If more than one property is to be set, each must be set in a separate statement.

The following table lists the properties that can be set for a control, and the values that can be assigned to them.

Property
Value
Description
BgColor
string
Determines Background Color for a control. For example, "Green" or "f0f0f0"
Enabled
TRUE or FALSE
Is the button active? (Unless explicitly modified by using SetProperty, default is TRUE.)
FontColor
string
Determines FontColor for a control. For example, "Green" or "f0f0f0"
FontType
string
Determines FontType for a control. For example, "Times Roman"
FontSize
string
Determines FontSize for a control. For example, "12 pt"
FontStyle
string
Determines FontStyle for a control. For example, "Bold"
Height
string
Determines Height for a control, in pixels. For example, "5"
Shown
TRUE or FALSE
Is the control shown? (Unless explicitly modified by using SetProperty, default is as defined in the repository.)
ReadOnly
TRUE or FALSE
Determines whether the control is read-only. Defaults to repository definition unless explicitly modified by using SetProperty.
Visible
TRUE or FALSE
Determines whether the control is visible. Defaults to repository definition unless explicitly modified by using SetProperty.
Width
string
Determines Width for a control, in pixels. For example, "80"

Used With

Browser Script

Example

The following code shows the use of SetProperty:

objCheckBox.SetProperty("FontColor", "f0f0f0");
objCheckBox.SetProperty("FontStyle", "italic");
objCheckBox.SetProperty("FontType", "Verdana");
objCheckBox.SetProperty("FontSize", "25pt");
objCheckBox.SetProperty("BgColor", "00f000");
objCheckBox.SetProperty("Width", "100");
objCheckBox.SetProperty("Height", "100");


 Siebel Object Interfaces Reference 
 Published: 18 June 2003