ComponentOne Chart 8.0 for ActiveX
Adding a Member Variable to a Project

 

Adding a Member Variable to a Project

Once the 3D Chart control has been added to the project and placed in the dialog box container, you can access this control from other parts of your project. The easiest way to do this is to create a member variable of the dialog class, CContainerDlg, of type CChart3D (the 3D Chart wrapper class). To create a member variable, perform the following steps:

1.   Load the OLE container project.

2.   Choose ClassWizard from the View menu.

3.   Choose the Member Variables tab.

4.   From the Class Name list box, select the main dialog class (CContainerDlg).

5.   From the ControlIDs list box, select the control ID of the embedded 3D Chart control.

6.   Click the Add Variable button to display the Add Member Variable dialog box.

7.   In the Member Variable edit box, enter a name.

8.   Select Control from the Category list box.

9.   Click OK to close the Add Member Variables dialog box.

10.  Click OK to exit ClassWizard.

The member variable you have just added can now be used to access the embedded 3D Chart control.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback