Forms style
By default forms adopt the style of Windows dialogs with a gray 3-D look. Colors used for text boxes can be set in the client's user preference dialog.
It is also possible to programatically set forms to have a flatter style without the 3-D look but with more control over the color of the components. Buttons will then be rendered with rounded corners and groupboxes will be drawn as panels with a separate title.
Original form
Same form rendered with KCML forms styling.
This KCML style is enabled by invoking the forms interface method FormColor() or its superset method SetFormColors() to set some component colors. The color names should be chosen from the standard HTML colours. Enabling the style will deploy the default color scheme.
// 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
Compatibility
The methods setting forms colors were introduced in KCML 6.60.