- else if ( id == ID_SETCOLOUR )
- {
- wxPGProperty* prop = m_pPropGridManager->GetSelection();
- if ( prop )
- {
- wxColourData data;
- data.SetChooseFull(true);
- int i;
- for ( 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();
- m_pPropGridManager->GetGrid()->SetPropertyBackgroundColour(prop,retData.GetColour());
- }
- }
- }