ComponentOne Sizer 8.0
Step 2: Add controls to the dialog

Now that you have a blank dialog, right-click the dialog and select the Insert ActiveX control… menu option. For this tutorial, create a C1Tab control and a C1Elastic control. After you have created the controls, position them on the dialog so it looks like this:

Setting control variables is as easy as in VB. Right click each control, select the Properties menu, and set the properties as you would in VB. For this application, set the C1Elastic's Align property to 2 – asBottom and set the C1Tab's Align property to 5 - Fill Container. (If you cannot find a property on the regular property pages, use the last one, named All, to see all properties listed in alphabetical order).

Note that the controls do not align themselves automatically at design time (they do in VB). This is because the VC++ dialog editor does not create full working versions of the controls at design time. Do not worry, though, the controls will align and resize at run time.

To make the dialog behave like a resizable VB form, right click the dialog, select the Properties menu item, select the Styles page, and then set the Border property to Resizing. To reduce flicker, also check the Clip Children checkbox.

 

 


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

Product Support Forum  |  Documentation Feedback