Partilhar via


ToolBar Object

Creates a custom toolbar.

ToolBar

Remarks

Use the ToolBar object to create your own toolbars for your applications.

The following list describes the properties of a custom toolbar:

  • Toolbars are always on top.
  • Toolbars automatically dock when they are moved to the edge of the main Visual FoxPro window.
  • When toolbars aren't docked, they have a half-height title bar.
  • When the size of a toolbar is changed, the controls are arranged to fit.
  • You can move a toolbar by clicking and dragging in any area of the toolbar that isn't a control.
  • Many controls placed on the toolbar do not receive the focus when they're chosen.
  • Access keys in controls placed in a toolbar are disabled.

Although any control can be placed on a toolbar, some controls, such as a list box, may be too large to fit properly in a docked toolbar. These controls can be programmatically removed from the toolbar when the toolbar is docked and replaced with a smaller version of the same control or a different control.

For additional information about creating toolbars, see Designing Menus and Toolbars.

See Also

ToolBar Object Properties, Methods and Events | CREATE CLASS | CREATE FORM | DEFINE CLASS | Separator Object