VisColorPaletteDropDown

PPJ.Runtime.Vis.VisColorPaletteDropDown

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Runtime.Vis.49 (4.9.0.0)

Non-editable combo-box with drop-down color palette

public class VisColorPaletteDropDown : VisDropDownBase

Constructors

VisColorPaletteDropDown()

Default Constructor.

Properties

Colors

IList: Returns the collection of colors.

SelectedColor

Color: Returns the selected color.

SelectedIndex

Int32: Returns/Sets the index of the selected color.

Text

String: Disabled text property.

Methods

AddMenu(szText, nID)

Adds menu to end of list.

Parameter
Type
Description

Returns: SalNumber.

ClearMenu()

Clears all menus from list.

Returns: SalBoolean.

FromHandle(handle)

Returns the control associated with the handle.

Parameter
Type
Description

Returns: VisColorPaletteDropDown.

GetColor(colors)

Retrieves the specified color from the palette.

Parameter
Type
Description

colors

Returns: SalNumber.

GetColors(colors)

Retrieves all colors from main palette region.

Parameter
Type
Description

Returns: SalNumber.

GetFocus()

Retrieves the position of highlight.

Returns: SalNumber.

GetMenu(nEntry, szText, nID)

Parameter
Type
Description

Returns: SalNumber.

GetMenuAll(szText, nID)

Retrieves all menu entries in list.

Parameter
Type
Description

Returns: SalNumber.

InsertMenu(nEntry, szText, nID)

Inserts menu entry and shifts list.

Parameter
Type
Description

Returns: SalBoolean.

RemoveMenu(nEntry)

Removes menu entry from list.

Parameter
Type
Description

nEntry

Returns: SalBoolean.

SetColor(nEntry, nColor)

Assigns color to main palette region.

Parameter
Type
Description

nEntry

nColor

Returns: SalNumber.

SetColors(colors)

Assigns all colors to main palette region.

Parameter
Type
Description

Returns: SalNumber.

SetFocus(nEntry)

Assigns the position of highlight.

Parameter
Type
Description

nEntry

Returns: SalBoolean.

SetMenu(nEntry, szText, nID)

Assigns menu text and ID.

Parameter
Type
Description

Returns: SalBoolean.

SetMenuAll(szText, nID)

Assigns all menu entries in list.

Parameter
Type
Description

Returns: SalNumber.

Implements

Last updated