Code: Select all
wxPropertyGrid * pPropGrid_Evaluate = new wxPropertyGrid(this, wxID_ANY);
pPropGrid_Evaluate->SetMarginColour(*wxRED);
pPropGrid_Evaluate->EnableCategories(false);
//pPropGrid_Evaluate->CenterSplitter(true);
wxStringProperty * p1 = new wxStringProperty(wxT("ID"), wxPG_LABEL);
p1->SetValue(wxT("aaa"));
pPropGrid_Evaluate->Append(p1);
pPropGrid_Evaluate->Append(new wxStringProperty(wxT("Name"), wxPG_LABEL));
pPropGrid_Evaluate->FitColumns();
- How to hide the margin on the left (red portion in the image above) when no hierarchy there?
- How to set fixed column size for some column?
In the code above, FitColumns will fit the second the line correctly, the first column size changes proportionally according to the second
- wxWidgets 3.1.2
- Windows 10
- VS2017