Palette Property (AForm)

Returns or sets an image that contains the palette to use for the control.

Syntax

Object.Palette [ = pic ]

The Palette property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

pic

APicture

A string expression specifying a file containing a graphic. The default is no picture.

Comments

In addition to .bmp files, a .dib, or .pal file can be used to set the palette.

Example

The following statement changes the AForm's Palette to a given image file:

frm1.Palette = LoadPicture ("c:\dirname\filename.bmp")

Applies to

AForm

See Also

BackColor, OnPaint, PaintPicture, PaletteMode, Picture