Added, documented and used wxGridCellChoiceEditor
taking wxArrayString. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -313,12 +313,16 @@ bool ctPropertyEditor::DisplayProperty(int row, ctProperty* prop, bool valueOnly
|
||||
// Set the value type
|
||||
if (prop->GetEditorType() == _T("choice"))
|
||||
{
|
||||
#if 0
|
||||
wxString* strArr = prop->GetChoices().GetStringArray();
|
||||
|
||||
m_attributeEditorGrid->SetCellEditor(row, 1,
|
||||
new wxGridCellChoiceEditor(prop->GetChoices().GetCount(), strArr));
|
||||
|
||||
delete[] strArr;
|
||||
#endif
|
||||
m_attributeEditorGrid->SetCellEditor(row, 1,
|
||||
new wxGridCellChoiceEditor(prop->GetChoices()));
|
||||
}
|
||||
else if (prop->GetEditorType() == _T("integer") || prop->GetVariant().GetType() == _T("long"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user