Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

existingprop = Set_Property (objectname, " BACKCOLOR ", color)

Remarks

Values passed in Set_Property():

ValueDescription
ColorNew color value.

...

Returns

Values returned by both Get_Property() and Set_Property():

ValueDescription
backgroundcolorExisting color value.

See also

FORECOLOR propertyGRADIENTSTYLE propertyCHOOSECOLOR Utility() service

Example

Code Block
* Example 1:  sets the color for CtrlEntID
Color  = Get_Property(CtrlEntID, "BACKCOLOR")
Parent = CtrlEntID [1,"."]
Color  = Utility("CHOOSECOLOR", Parent, Color)
if len(Color) then
  Set_Property(CtrlEntID, "BACKCOLOR", Color)
end

...