wxWidgets: /home/Hamis/wxwidgets/wxWidgets3.0/wxWidgets3.0-3.0.5.1-2.x86_64/src/wxWidgets-3.0.5.1/interface/wx/colordlg.h File Reference

| Version: 3.0.5

Classes | Functions
colordlg.h File Reference

## Classes
class | wxColourDialog
| This class represents the colour chooser dialog. 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...

## 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

  parent | The parent window for the colour selection dialog.
  colInit | If given, this will be the colour initially selected in the dialog.
  caption | If given, this will be used for the dialog caption.
  data | Optional 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>