Properties: More API differences in wx3.0
This commit is contained in:
parent
773f444636
commit
778d01c46b
|
@ -47,7 +47,12 @@ bool PG_CELL_RENDERER::Render( wxDC &aDC, const wxRect &aRect, const wxPropertyG
|
||||||
|
|
||||||
text = wxControl::Ellipsize( text, aDC, wxELLIPSIZE_MIDDLE, aRect.GetWidth() );
|
text = wxControl::Ellipsize( text, aDC, wxELLIPSIZE_MIDDLE, aRect.GetWidth() );
|
||||||
|
|
||||||
|
#if wxCHECK_VERSION( 3, 1, 0 )
|
||||||
int imageWidth = PreDrawCell( aDC, aRect, aGrid, cell, preDrawFlags );
|
int imageWidth = PreDrawCell( aDC, aRect, aGrid, cell, preDrawFlags );
|
||||||
|
#else
|
||||||
|
int imageWidth = PreDrawCell( aDC, aRect, cell, preDrawFlags );
|
||||||
|
#endif
|
||||||
|
|
||||||
int imageOffset = aProperty->GetImageOffset( imageWidth );
|
int imageOffset = aProperty->GetImageOffset( imageWidth );
|
||||||
|
|
||||||
DrawEditorValue( aDC, aRect, imageOffset, text, aProperty, nullptr );
|
DrawEditorValue( aDC, aRect, imageOffset, text, aProperty, nullptr );
|
||||||
|
|
Loading…
Reference in New Issue