Creating new toolbars

PocketBuilder has built-in toolbars. When you start PocketBuilder, you see what is called the PowerBar. In each painter, you also see one or more PainterBars. PowerBar and PainterBar are actually instances of two types of toolbars you can create to make it easier to work in the PocketBuilder IDE.

PowerBars and PainterBars

A PowerBar is a toolbar that always displays in PocketBuilder unless you hide it. A PainterBar is a toolbar that always displays in the specific painter for which it was defined unless you hide it:

Table 2-5: PowerBars and PainterBars

For this toolbar type

The default is named

And you can have up to

PowerBar

PowerBar1

Four PowerBars

PainterBar

PainterBar1, PainterBar2, and so on

Eight PainterBars in each painter

About the StyleBar

A StyleBar is another type of toolbar that is available by default in certain painters. You can have only one StyleBar per painter. The default StyleBar contains drop-down lists for text fonts and sizes, as well as buttons for text presentation styles and alignment settings. For painters that do not have the default StyleBar, you can define a toolbar with the name StyleBar, but you can add only painter-specific buttons, not style buttons.

Where you create them

You can create a new PowerBar anywhere in PocketBuilder, but to create a new PainterBar, you must be in the workspace of the painter for which you want to define the PainterBar.

StepsTo create a new toolbar:

  1. Position the pointer on any toolbar, display the pop-up menu, and select New.

    The New Toolbar dialog box displays a list of PowerBar and PainterBar names. StyleBar is also listed for painters that do not already have a StyleBar.

  2. Select a toolbar name and click OK.

    The Customize dialog box displays with the Current toolbar box empty.

  3. One at a time, drag the toolbar buttons you want from the Selected palette box to the Current toolbar box and then click OK.