Testing the Caption Property

Use Test Container to test the caption drawing behavior.

To test the caption property

  1. On the Tools menu, click ActiveX Control Test Container.

  2. On the Edit menu, click Insert New Control.

    The Insert Control dialog box appears.

  3. From the list box, select Circ Control.

  4. Click OK to close the Insert Object dialog box and insert the control into Test Container.

  5. On the Control menu, click Invoke Methods.

  6. From the Method Name drop-down combo box, select the PropPut version of Caption.

  7. In the Parameter Value control, type Hello.

  8. Click Set Value and then click Invoke.

The string “Hello” is displayed in the circle. Now try typing some longer phrases for the caption. Notice that the phrase is clipped to the bounds of the circle.

Next, modify the caption color and font.

To modify the color and font properties

  1. On the Edit menu, click Properties... Circ Control Object.

    The Circ Control Properties property page dialog box appears.

  2. Click the Fonts tab.

    Modify the different font properties and click Apply to see your changes reflected in the control.

  3. Click the Colors tab.

    Modify the different color properties and click Apply to see your changes reflected in the control. Notice that the Property Name drop-down list box contains three entries — the stock BackColor, stock ForeColor, and custom FlashColor properties.

When you have finished, close Test Container.