Description
Generates a ramp color palette with current popup windows color cells.
Syntax
Ctlname.GeneratePalette (Optional Bool bVisualNode = True)
Return Type
Boolean
Remarks
Use this method to generate a ramp color palette according to current color cells colors and ramp nodes type. Parameter bVisualNode specifies a value determines whether generate visual color cells area. Default to True, For example, current ColorBoxDimension is cc14x14,

After loaded a standard ramp palette file or when generated a ramp palette, the ColorCell(0,0) and ColorCell(x, y) ramp node type must be True. x, y determines by ColorBoxDimension.
More details about ramp palette functions, see also RampNodes sections 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.
Samples
'Assume ColorPicker1's current ColorBoxDimension is cc16x16
ColorPicker1.ColorBoxDimension = CPColorBoxDimension.cc8x8
ColorPicker1.SetColorCellColor 7, 7, RGB(255, 0, 0), True
'Generate visual area palette
ColorPicker1.GeneratePalette
'Generate full palette
ColorPicker1.GeneratePalette False
ColorPicker1.SavePalette “c:\Palette\rose.pal”