Applied ticket #1230 (patch to SetColFormatCustom), setting both editor and
renderer when selecting a specific format instead of just the renderer. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10018,6 +10018,8 @@ void wxGrid::SetColFormatCustom(int col, const wxString& typeName)
|
|||||||
attr = new wxGridCellAttr;
|
attr = new wxGridCellAttr;
|
||||||
wxGridCellRenderer *renderer = GetDefaultRendererForType(typeName);
|
wxGridCellRenderer *renderer = GetDefaultRendererForType(typeName);
|
||||||
attr->SetRenderer(renderer);
|
attr->SetRenderer(renderer);
|
||||||
|
wxGridCellEditor *editor = GetDefaultEditorForType(typeName);
|
||||||
|
attr->SetEditor(editor);
|
||||||
|
|
||||||
SetColAttr(col, attr);
|
SetColAttr(col, attr);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user