Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

agrawal.raj

macrumors newbie
Original poster
Jun 13, 2011
1
0
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:

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();
}
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
 
Last edited by a moderator:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.