wxGetColourFromUser

From WxWiki
Jump to navigation Jump to search

Source

Header:

#include <wx/colordlg.h>

Description

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

Parameter Data Type Description
parent wxWindow* The parent window for the colour selection dialog.
colInit const wxColour & If given, this will be the colour initially selected in the dialog.
caption const wxString & If given, this will be used for the dialog caption.
data wxColourData* Optional object storing additional colour dialog settings, such as custom colours. If none is provided the same settings as the last time are used.

Return Values

wxColour: Returns the color chosen by the user.

Example Call