DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


DIView Sample

Source code for DIView sample is available in Samples\NET\VB folder of the installation directory.

Description

Implementation

All the work is done inside DIViewForm class. The OnSizeChanged() method synchronizes size and position of the view and of the control.

Background manipulation is implemented in a set of methods called from DIViewForm.InitBackground(). It is using IRectangleColor_DG interface to access and modify arrays of colors assigned to four sides of the window rectangle.

See also: C# DIView Sample, C++ DIView sample, VB 6.0 DIView Sample, All samples