git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48410
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ wxDataViewColumn *expander = GetOwner()->GetExpanderColumn();
+ if (!expander)
+ {
+ // TODO: last column for RTL support
+ expander = GetOwner()->GetColumn( 0 );
+ }
+
// redraw all cells for all rows which must be repainted and for all columns
wxRect cell_rect;
cell_rect.x = x_start;
// redraw all cells for all rows which must be repainted and for all columns
wxRect cell_rect;
cell_rect.x = x_start;
if (col->IsHidden())
continue; // skipt it!
if (col->IsHidden())
continue; // skipt it!
for (unsigned int item = item_start; item < item_last; item++)
{
// get the cell value and set it into the renderer
for (unsigned int item = item_start; item < item_last; item++)
{
// get the cell value and set it into the renderer
//Draw the expander here.
int indent = node->GetIndentLevel();
//Draw the expander here.
int indent = node->GetIndentLevel();
- if( col == GetOwner()->GetExpanderColumn() )
{
//Calculate the indent first
indent = cell_rect.x + GetOwner()->GetIndent() * indent;
{
//Calculate the indent first
indent = cell_rect.x + GetOwner()->GetIndent() * indent;