共用方式為


Adding Objects to a Custom Toolbar Class

After creating a custom toolbar class, you can add objects to it, including any objects supported by Visual FoxPro. For example, you can add objects from the Controls toolbar.

To add objects to your custom toolbar class

  1. Open the class library containing the custom toolbar class, and then open the class.

  2. On the Form Controls toolbar, choose an object you want to add.

  3. Place the object on the custom toolbar by selecting the custom toolbar.

  4. Repeat steps 2 and 3 until the custom toolbar is complete.

  5. Reorganize the objects on the custom toolbar, if appropriate.

    For example, you can size objects, move them by dragging them, delete them by pressing the DELETE key, or add extra space between them by inserting Separator objects from the Form Controls toolbar.

    Note   You can move only one object at a time.

  6. Set properties of the toolbar in the Properties window.

  7. Save the custom toolbar class.

    Tip   You can add a bitmap or icon to a toolbar button by setting its Picture property.

See Also

Defining a Toolbar Class | Adding Custom Toolbars to Form Sets | Creating Custom Toolbars | Customize Toolbar Dialog Box | Designing Menus and Toolbars | Configuring Visual FoxPro