Links

VisColorPalette

PPJ.Runtime.Vis.VisColorPalette
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.49 (4.9.0.0)
Stand-alone color palette
C#
VB.NET
public class VisColorPalette : VisColorPaletteBase
Public Class VisColorPalette
Inherits VisColorPaletteBase

Constructors

VisColorPalette()

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
Returns: VisColorPalette.

GetColor(nEntry)

Retrieves color from main palette region.
Parameter
Type
Description
nEntry
SalNumber
Returns: SalNumber.

GetColors(nColors)

Retrieves all colors from main palette region.
Parameter
Type
Description
nColors
Returns: SalNumber.

GetFocus()

Retrieves the position of highlight.
Returns: SalNumber.

GetMenu(nEntry, sText, nID)

Parameter
Type
Description
nEntry
SalNumber
sText
nID
Returns: SalNumber.

GetMenuAll(sText, nID)

Retrieves all menu entries in list.
Parameter
Type
Description
sText
nID
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(nColors)

Assigns all colors to main palette region.
Parameter
Type
Description
nColors
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(sText, nID)

Assigns all menu entries in list.
Parameter
Type
Description
sText
nID
Returns: SalNumber.

Implements

Name
Description