preserve custom colours between calls to wxGetColourFromUser(), also allow passing a custom wxColourData to it (modified patch 1832582)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2109,7 +2109,7 @@ customization.
|
||||
|
||||
\membersection{::wxGetColourFromUser}\label{wxgetcolourfromuser}
|
||||
|
||||
\func{wxColour}{wxGetColourFromUser}{\param{wxWindow *}{parent}, \param{const wxColour\& }{colInit}, \param{const wxString\& }{caption = wxEmptyString}}
|
||||
\func{wxColour}{wxGetColourFromUser}{\param{wxWindow *}{parent}, \param{const wxColour\& }{colInit}, \param{const wxString\& }{caption = wxEmptyString}, \param{wxColourData *}{data = \NULL}}
|
||||
|
||||
Shows the colour selection dialog and returns the colour selected by user or
|
||||
invalid colour (use \helpref{wxColour:IsOk}{wxcolourisok} to test whether a colour
|
||||
@@ -2123,6 +2123,10 @@ is valid) if the dialog was cancelled.
|
||||
|
||||
\docparam{caption}{If given, this will be used for the dialog caption.}
|
||||
|
||||
\docparam{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.}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/colordlg.h>
|
||||
|
Reference in New Issue
Block a user