LoadColorBoxColors Method

Description

Load a ramp palette file (*.PAL) into current control palette popup window to specify all units colors.

Syntax

Ctlname.LoadColorBoxColors(string lpszFileName)

Return Type

Boolean

Remarks

Use this method to load a ramp palette file (*.PAL) into the control palette popup window color units.

There will return False if the specified palette file loading failed.

This method invoking does not need popup window visible.

This method function is the same with PaletteFile property, see also PaletteFile property.

More details about ramp palette functions, see also GeneratePalette and SavePalette methods.

Notes: Color cells tooltip texts will not synchronize automatically after its value is changed. All color cells tooltip texts need be modify manually if you hope it has meaning, refer to SetColorCellToolTip method.