SelectCustom Method

Description

Select the custom item from the popup window.

Syntax

Ctlname.SelectCustom (Optional Bool bBrowseColor = True)

Return Type

Boolean

Remarks

Use this method to browse the custom color from the current selected control, if bBrowseColor is False and no custom color available, do nothing, or return the custom color cell value straightly. If bBrowseColor is True, occurs BeforeCustomClick event and open windows color dialog to choose a color, and this method would be failed if EnableCustomColor was False.

This method invoking does not need popup window visible.

This action will change WhoIsSelected property value to CPWhoIsSelected.ccCustom (2).

Samples

If ColorPicker1.SelectCustom then

Picture1.BackColor = ColorPicker1.Value

End if