Control Colors

It's important to note that some controls place limits on the ability to change their color.  In addition, these limits are sometimes altered further when an XP/Vista theme is applied, so the controls offer a consistent appearance.  These limits are determined and imposed by Windows, not PowerBASIC, so it isn't possible to override them without resorting to custom drawing.  When color changes are not available, the appropriate choices will be disabled to advise you of the restriction.

The following table lists availability of foreground color change, background color change, and transparent background (attribute of -2):

 

 

No XP/Vista Theme

With XP/Vista Theme

Control

Foreground

Background

Transparent

Foreground

Background

Transparent

Graphic

Yes

Yes

No

Yes

Yes

No

Image

No

No

No

No

No

No

Stretchable Image

No

No

No

No

No

No

Label

Yes

Yes

Yes

Yes

Yes

Yes

Text Box

Yes

Yes

Yes

Yes

Yes

No

Frame

Yes

Yes

Yes

No

Yes

No

Button

No

No

No

No

No

No

Image Button

No

No

No

No

No

No

Stretchable Image Button

No

No

No

No

No

No

Check Box

Yes

Yes

Yes

No

Yes

No

Check-3 State

Yes

Yes

Yes

No

Yes

No

Option/Radio

Yes

Yes

Yes

No

Yes

Yes

Combo Box

Yes

Yes

Yes

Yes

Yes

No

List Box

Yes

Yes

No

Yes

Yes

No

Horizontal Scroll Bar

No

Yes

No

No

Yes

No

Vertical Scroll Bar

No

Yes

No

No

Yes

No

Line/Box

No

No

No

No

No

No

Spinner/Up-Down

No

No

No

No

No

No

Progress Bar

Yes

Yes

No

No

No

No

Track Bar

No

Yes

No

No

Yes

No

Hot key

No

No

No

No

No

No

List View

Yes

Yes

Yes

Yes

Yes

Yes

Tree View

Yes

Yes

No

Yes

Yes

No

Tab

No

No

No

No

No

No

Animate

No

Yes

No

No

Yes

No

Rich Edit

No

Yes

No

No

Yes

No

Date Time Picker

Yes

Yes

No

Yes

Yes

No

Month Calendar

Yes

Yes

No

Yes

Yes

No

IP Address

No

No

No

No

No

No

Status Bar

No

Yes

No

No

No

No

Toolbar

No

No

No

No

No

No

 

See Also

Dialog and control properties

General properties

Styles properties

Position and size properties

OK, cancel, and apply buttons