added combobox editor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -960,12 +960,17 @@ BugsGridFrame::BugsGridFrame()
|
||||
grid->SetTable(table, TRUE);
|
||||
|
||||
wxGridCellAttr *attrRO = new wxGridCellAttr,
|
||||
*attrRangeEditor = new wxGridCellAttr;
|
||||
*attrRangeEditor = new wxGridCellAttr,
|
||||
*attrCombo = new wxGridCellAttr;
|
||||
|
||||
attrRO->SetReadOnly();
|
||||
attrRangeEditor->SetEditor(new wxGridCellNumberEditor(1, 5));
|
||||
attrCombo->SetEditor(new wxGridCellChoiceEditor(WXSIZEOF(severities),
|
||||
severities));
|
||||
|
||||
grid->SetColAttr(Col_Id, attrRO);
|
||||
grid->SetColAttr(Col_Priority, attrRangeEditor);
|
||||
grid->SetColAttr(Col_Severity, attrCombo);
|
||||
|
||||
grid->AutoSizeColumns();
|
||||
}
|
||||
|
Reference in New Issue
Block a user