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

 

Add a Member Variable to a Project

Once the 2D 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 CChart2D (the 2D 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 MemberVariables tab.

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

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

6.   Click the AddVariable button to display the AddMemberVariable dialog box.

7.   In the MemberVariable edit box, enter a name.

8.   Select Control from the Category list box.

9.   Click OK to close the AddMemberVariables dialog box.

10.  Click OK to exit ClassWizard.

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

 

 


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

Product Support Forum  |  Documentation Feedback