The Window painter has two Color drop-down toolbars on PainterBar3 that display colors you can use for the background and foreground of components of the window. Initially, the drop-down toolbars display these color selections:
20 predefined colors
16 custom colors (labeled C)
The full set of Windows system colors
Do not use Windows system colors for deployed applications The Windows system colors are those defined by the user in the desktop Windows Control Panel. They are labeled with letters that indicate the type of display element they represent. As they are not defined for the Windows CE device, you should not use them in the applications you build with PocketBuilder.
You can define your own custom colors for use in windows, user objects, and DataWindow objects.
Figure 11-2: Dialog box for defining custom colors
To define and maintain custom colors:
Select Design>Custom Colors from the menu bar.
The Color dialog box displays.
Click in an empty color box in the list of custom colors.
Choose an existing color or create the color you want.
You can start with one of the basic colors and customize it in the palette to the right by dragging the color indicator with the mouse. You can also specify precise values to define the color.
When you have the color you want, click Add to Custom Colors.
The new color displays in the list of custom colors.
Select the new color in the list of custom colors.
Click OK.
The new color displays in the Color drop-down toolbars and is available in all windows, user objects, and DataWindow objects you create.
PocketBuilder saves custom colors in the [Colors] section of the PocketBuilder initialization file, so they are available across sessions.
You can assign colors to controls using the PainterBar or the Properties view. The page in the Properties view that you use to assign colors depends on the control.
For some controls you can change the background color only. For others, including the CommandButton, PictureButton, PictureHyperLink, Picture, ScrollBars, TrackBars, and ProgressBars, you can change neither the foreground nor the background color.
To assign a color using the PainterBar:
Select the control.
Select either the foreground or background color button from the PainterBar.
Select a color from the drop-down toolbar.