VisColorPaletteDropDown
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.49 (4.9.0.0)
Non-editable combo-box with drop-down color palette
- C#
- VB.NET
public class VisColorPaletteDropDown : VisDropDownBase
Public Class VisColorPaletteDropDown
Inherits 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 |
|---|---|---|
| szText | SalString | |
| nID | SalNumber |
Returns: SalNumber.
ClearMenu()
Clears all menus from list.
Returns: SalBoolean.
FromHandle(handle)
Returns the control associated with the handle.
| Parameter | Type | Description |
|---|---|---|
| handle | SalWindowHandle |
Returns: VisColorPaletteDropDown.
GetColor(colors)
Retrieves the specified color from the palette.
| Parameter | Type | Description |
|---|---|---|
| colors | SalNumber |
Returns: SalNumber.
GetColors(colors)
Retrieves all colors from main palette region.
| Parameter | Type | Description |
|---|---|---|
| colors | SalArray<SalNumber> |
Returns: SalNumber.
GetFocus()
Retrieves the position of highlight.
Returns: SalNumber.
GetMenu(nEntry, szText, nID)
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber | |
| szText | SalString& | |
| nID | SalNumber& |
Returns: SalNumber.
GetMenuAll(szText, nID)
Retrieves all menu entries in list.
| Parameter | Type | Description |
|---|---|---|
| szText | SalArray<SalString> | |
| nID | SalArray<SalNumber> |
Returns: SalNumber.
InsertMenu(nEntry, szText, nID)
Inserts menu entry and shifts list.
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber | |
| szText | SalString | |
| nID | SalNumber |
Returns: SalBoolean.
RemoveMenu(nEntry)
Removes menu entry from list.
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber |
Returns: SalBoolean.
SetColor(nEntry, nColor)
Assigns color to main palette region.
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber | |
| nColor | SalNumber |
Returns: SalNumber.
SetColors(colors)
Assigns all colors to main palette region.
| Parameter | Type | Description |
|---|---|---|
| colors | SalArray<SalNumber> |
Returns: SalNumber.
SetFocus(nEntry)
Assigns the position of highlight.
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber |
Returns: SalBoolean.
SetMenu(nEntry, szText, nID)
Assigns menu text and ID.
| Parameter | Type | Description |
|---|---|---|
| nEntry | SalNumber | |
| szText | SalString | |
| nID | SalNumber |
Returns: SalBoolean.
SetMenuAll(szText, nID)
Assigns all menu entries in list.
| Parameter | Type | Description |
|---|---|---|
| szText | SalArray<SalString> | |
| nID | SalArray<SalNumber> |
Returns: SalNumber.
Implements
| Name | Description |
|---|---|
| ISalControl | |
| ISalEditControl | |
| ISalListControl | |
| ISalWindow |