int wxGenericColourDialog::ShowModal()
{
- return wxDialog::ShowModal();
+ int nResult = wxDialog::ShowModal();
+ colourData.SetColour(singleCustomColour);
+ return nResult;
}
PaintHighlight(dc, false);
whichKind = 1;
colourSelection = which;
- colourData.SetColour(standardColours[colourSelection]);
redSlider->SetValue( standardColours[colourSelection].Red() );
greenSlider->SetValue( standardColours[colourSelection].Green() );
blueSlider->SetValue( standardColours[colourSelection].Blue() );
PaintHighlight(dc, false);
whichKind = 2;
colourSelection = which;
- colourData.SetColour(customColours[colourSelection]);
redSlider->SetValue( customColours[colourSelection].Red() );
greenSlider->SetValue( customColours[colourSelection].Green() );
blueSlider->SetValue( customColours[colourSelection].Blue() );
}
customColours[colourSelection].Set(singleCustomColour.Red(), singleCustomColour.Green(), singleCustomColour.Blue());
- colourData.SetColour(customColours[colourSelection]);
colourData.SetCustomColour(colourSelection, customColours[colourSelection]);
PaintCustomColours(dc);