Hello Everyone,
I am making cross platform application.
In the application i have to get and set custom colour in wxColourDialog.
I am using wxWidgets2.9 on Mac and Linux OS.
Code example from wxWidgets manual:
the custom color saved in color dialog in Linux OS, but not on Mac color dialog.
Kindly assist me .Any help will be highly appricated.
Thanks and Best regards, RAJ
I am making cross platform application.
In the application i have to get and set custom colour in wxColourDialog.
I am using wxWidgets2.9 on Mac and Linux OS.
Code example from wxWidgets manual:
Code:
wxColourData data;
data.SetChooseFull(true);
for (int i = 0; i < 16; i++)
{
wxColour colour(i*16, i*16, i*16);
data.SetCustomColour(i, colour);
}
wxColourDialog dialog(this, &data);
if (dialog.ShowModal() == wxID_OK)
{
wxColourData retData = dialog.GetColourData();
wxColour col = retData.GetColour();
wxBrush brush(col, wxSOLID);
myWindow->SetBackground(brush);
myWindow->Clear();
myWindow->Refresh();
}
Kindly assist me .Any help will be highly appricated.
Thanks and Best regards, RAJ
Last edited by a moderator: