wxRuby Documentation Home

# Wx::ColourDialog

This class represents the colour chooser dialog.

## Derived from

Dialog

Window

EvtHandler

Object

## See also

ColourDialog Overview,

Colour,

ColourData,

GetColourFromUser

## Methods

- ColourDialog.new
- ColourDialog#create
- ColourDialog#get_colour_data
- ColourDialog#show_modal

### ColourDialog.new

ColourDialog.new(%(arg-type)Window% parent, ColourData data = nil)

Constructor. Pass a parent window, and optionally a pointer to a block of colour
data, which will be copied to the colour dialog’s colour data. Custom
colours from colour data object will be be used in dialog’s colour palette.
Invalid entries in custom colours list will be ignored on some platforms (GTK)
or replaced with white colour on platforms where custom colours palette has
fixed size (MSW).

#### See also

ColourData

destructor()

Destructor.

### ColourDialog#create

Boolean create(%(arg-type)Window% parent, ColourData data = nil)

Same as constructor.

### ColourDialog#get_colour_data

ColourData get_colour_data()

Returns the colour data associated with the colour dialog.

### ColourDialog#show_modal

Integer show_modal()

Shows the dialog, returning ID_OK if the user pressed OK, and ID_CANCEL
otherwise.

[This page automatically generated from the Textile source at 2023-06-09 00:45:28 +0000]