SetColor
InstallShield 2024 » InstallScript Language Reference
The SetColor function sets the color of the setup background.
Note:This function is not supported for use in Basic MSI setup projects.
Syntax
SetColor ( nObject, nColor );
Parameters
Parameter |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
nObject |
Specifies the user interface object to change. Pass the following predefined constant in this parameter:
|
||||||||||||||||||||||||||||||||||||||||||||||||
nColor |
Specifies a color for the background. For a gradient background color, pass one of the following constants:
For a solid background color, pass one of the following constants or call the RGB function to indicate a particular color (using the values provided in the parentheses):
For a custom color, pass the function RGB in this parameter. Note:When using an RGB value, you can apply the same method as described in the programming manuals for Microsoft Windows. You specify the mixture of RED, GREEN, and BLUE colors to “mix” the color. Use a number from 0 to 255 to represent the amount of color to use. You must use literal numbers in the parameters of the RGB macro. You can also use a long value that represents the RGB color instead of the RGB statement. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully set the color of the object. |
< 0 |
Indicates that the function was unable to set the color of the user interface object. |
See Also