wxScrolledWindow::Create( parent, id, pos, size, style|wxHSCROLL|wxVSCROLL, name );
+#if wxUSE_VALIDATORS
SetValidator( validator );
+#endif
SetBackgroundColour( *wxWHITE );
m_dottedPen = wxPen( *wxBLACK, 0, 0 );
size_t count = children.Count();
for (size_t n=(size_t)(index+1); n<count; ++n)
- if (TagAllChildrenUntilLast(children[n], last_item, select)) return true;
+ if (TagAllChildrenUntilLast(children[n], last_item, select)) return TRUE;
return TagNextChildren(parent, last_item, select);
}
crt_item->SetHilight(select);
RefreshLine(crt_item);
- if (crt_item==last_item) return true;
+ if (crt_item==last_item) return TRUE;
if (crt_item->HasChildren())
{
wxArrayGenericTreeItems& children = crt_item->GetChildren();
size_t count = children.Count();
for ( size_t n = 0; n < count; ++n )
- if (TagAllChildrenUntilLast(children[n], last_item, select)) return true;
+ if (TagAllChildrenUntilLast(children[n], last_item, select)) return TRUE;
}
- return false;
+ return FALSE;
}
void wxTreeCtrl::SelectItemRange(wxGenericTreeItem *item1, wxGenericTreeItem *item2)
// to keep going anyhow !!!
if (is_single)
{
- unselect_others=true;
- extended_select=false;
+ unselect_others=TRUE;
+ extended_select=FALSE;
}
wxGenericTreeItem *item = itemId.m_pItem;
}
else
{
- bool select=true; // the default
+ bool select=TRUE; // the default
// Check if we need to toggle hilight (ctrl mode)
if (!unselect_others)