Version: 3.1.5
colordlg.h File Reference

Classes

class  wxColourDialog
 This class represents the colour chooser dialog. More...
 
class  wxColourDialogEvent
 This event class is used for the events generated by wxColourDialog. More...
 

Functions

wxColour wxGetColourFromUser (wxWindow *parent, const wxColour &colInit, const wxString &caption=wxEmptyString, wxColourData *data=NULL)
 Shows the colour selection dialog and returns the colour selected by user or invalid colour (use wxColour::IsOk() to test whether a colour is valid) if the dialog was cancelled. More...
 

Variables

wxEventType wxEVT_COLOUR_CHANGED
 

Function Documentation

◆ wxGetColourFromUser()

wxColour wxGetColourFromUser ( wxWindow parent,
const wxColour colInit,
const wxString caption = wxEmptyString,
wxColourData data = NULL 
)

Shows the colour selection dialog and returns the colour selected by user or invalid colour (use wxColour::IsOk() to test whether a colour is valid) if the dialog was cancelled.

Parameters
parentThe parent window for the colour selection dialog.
colInitIf given, this will be the colour initially selected in the dialog.
captionIf given, this will be used for the dialog caption.
dataOptional object storing additional colour dialog settings, such as custom colours. If none is provided the same settings as the last time are used.

Include file:

#include <wx/colordlg.h> 

Variable Documentation

◆ wxEVT_COLOUR_CHANGED

wxEventType wxEVT_COLOUR_CHANGED