SetFormColors method

[method icon] SetFormColors(Colors$)

>SetFormColors

SetFormColors

The SetFormColors(Colors) method sets color properties for components of a form displayed in KCML style. This method works in the same way as FormColor except that it can set multiple colours with one call which can be more efficient over a slow network. Component and color names are specified as a string of comma separated values.

// setup client forms object
OBJECT client = CREATE "ClientCOM","KClient"
OBJECT Forms = client.GetForms()
// REM Set up a button color scheme
REDIM Color$ = "ButtonFace,LightSteelBlue"
REDIM Color$ = Color$ & ",ButtonText,Black"
REDIM Color$ = Color$ & ",ButtonDisabledText,Gray"
REDIM Color$ = Color$ & ",DefaultButtonFace,LightSeaGreen"
REDIM Color$ = Color$ & ",DefaultButtonBorder,Black"
// apply it
Forms.SetFormColors(Color$)
// tidy up
OBJECT Forms = NULL
OBJECT client = NULL
See also:

AddTool, AddToolAlert, AddToolFile, AddToolMenu, BlankDesktop, EnableAltCurrencyMode, FormColor, FormColorBorderThreshold, FormColorEnableGridBorder, HonorFormVisibleProperty, PersistFormSize, SetAltCurrencyMode, SetDBeditSearchTimeout, SetGridCopyTimeout, SetToolAlertItemText, SetToolBarSize, SetToolItemText, SetToolMenuText, ShowToolbarOnly, SmallScreenLargeToolBar, SpoofGraph, TabEnterKey, TabReturnKey, UserColor