ComponentOne Sizer 8.0
Step 3: Attach class variables to the controls

At this point, the application already has the controls in it, but you cannot access them using code because they are not mapped onto any class variables. To do this, hold the control key while you double-click on the C1Tab control. VC++ will tell you it needs to create a wrapper class for the control. Click OK to create the wrapper class, click OK again to accept the default options. In the Add Member Variable dialog box, enter m_C1Tab as the variable name, and click OK to finish.


Now you can use the m_C1Tab member variable to access the control's properties and methods. Do the same for the C1Elastic control, and call it m_C1Elastic.

Run the project to make sure it works so far. Notice that you can resize the window and the controls will align themselves to the new window layout.

 

 


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

Product Support Forum  |  Documentation Feedback