LabelEx C++ Sample
Source code for Label sample is available in Samples\VC\Labels\LabelEx
folder of the installation directory. LabelEx demonstrates usage of
ILocation
and ILocationEx interfaces fpr programmatic
manipulation of advanced positioning of 3D Labels.
Overview
Implementation
All DG Kernel related functionality is implemented by the LabelExDlg class. On
the start LabelExDlg::OnInitDialog() function acquires required
IItem/a>,
A href="../ILocation.aspx">ILocation
and ILocationEx interfaces for each
label as described in Programming
3D Labels and stores them into the class variables.
LabelExDlg::GetObjectData() function uses
ILocation
and ILocationEx to query necessary
information from the label objects.
LabelExDlg::ModifyStandaloneLabel() is the function which transfers all
relevant options into properties of the top-level label and updates the display.
It uses
ILocation
and ILocationEx to do the job.
LabelExDlg::ModifyChildLabel() does the same for the child label.
.Notice the LabelExDlg::ReleaseAll() function, which is called from the
OnDestroy() Windows message handler.
See also IText, ILocation, IItem,
IDIFont
, All samples.
|