Dialogs.ShowColorDialog Method (Object, Color4f, Boolean, Dialogs.OnColorChangedEvent)
Click or drag to resize

DialogsShowColorDialog Method (Object, Color4f, Boolean, DialogsOnColorChangedEvent)

Displays the standard modal color picker dialog for floating point colors.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static bool ShowColorDialog(
	Object parent,
	ref Color4f color,
	bool allowAlpha,
	DialogsOnColorChangedEvent colorCallback


Type: SystemObject
Parent window for this dialog, should always pass this if calling from a form or user control.
Type: Rhino.DisplayColor4f
The initial color to set the picker to and also accepts the user's choice.
Type: SystemBoolean
Specifies if the color picker should allow changes to the alpha channel or not.
Type: Rhino.UIDialogsOnColorChangedEvent
May be optionally passed to ShowColorDialog and will get called when the color value changes in the color dialog.

Return Value

Type: Boolean
true if a color was picked, false if the user canceled the picker dialog.
Version Information

Rhino for Windows

Supported in: 6.7
See Also