DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > DG Kernel Controls > Interactive Functionality > View of DGK Control > Background Go to DGKC docs Search Documentation


Background of DG Kernel Window

By default window of a DG Kernel component is created with a flat color background controlled by DIBackColor property. The background can display gradient colors of various directions and configuration. To enable gradient background query IKCContext from IView of the component and set the first (id=0) integer parameter to 1. To disable gradient background set the parameter to 0. See DIView sample for an example.

Gradient color of the window is defined by array of colors positioned along the edge of the component window. The array of color has always at least four colors for the corners. For example, to make the background horizontally gradient changing from blue to green set colors at two left corners to blue and colors at two right hand corners to green. Adding colors in the middle of window sides will make the background more complicated.

Colors of the components background can be manipulated with IRectangleColor_DG interface obtained via query: DG Kernel > GetView > IView > IRectangleColor_DG

See also: DIView sampleDIBackColor property