CRegistry:GetRgb

CRegistry:SetRgb


The SetRgb method saves an RGB value string to a Registry key. The RGB string is in a form like "100,250,12" containing R, G, and B color values between 0 and 255.

Syntax

CRegistry:SetRgb( sName, rgbValue )

    sName is the name of the value being saved.

    rgbValue is the RGB string value to be saved.

Example

The following script opens a key specified by sKeyName and saves an RGB string value to the Registry under the name "MyVal":

R = CRegistry:Open( sKeyName )

-- open the key and create a CRegistry object

R:SetRgb( "MyVal", "0,64,12" )

-- saves the value "0,64,12" under the name "MyVal"

Related Topics

CRegistry, GetRgb, CColorRef