+ if(m_scroll_buttons_visible)
+ {
+ if(major_axis == wxHORIZONTAL)
+ {
+ origin.x -= m_scroll_amount;
+ if(m_scroll_left_btn)
+ origin.x -= m_scroll_left_btn->GetSize().GetWidth();
+ }
+ else
+ {
+ origin.y -= m_scroll_amount;
+ if(m_scroll_left_btn)
+ origin.y -= m_scroll_left_btn->GetSize().GetHeight();
+ }
+ }
+ size_index = 0;
+ for(wxWindowList::compatibility_iterator node = GetChildren().GetFirst();
+ node;
+ node = node->GetNext(), ++size_index )
+ {
+ wxWindow* child = node->GetData();
+ int w = m_size_calc_array[size_index].GetWidth();
+ int h = m_size_calc_array[size_index].GetHeight();
+ child->SetSize(origin.x, origin.y, w, h);
+ if(major_axis == wxHORIZONTAL)
+ {
+ origin.x += w + gap;
+ }
+ else
+ {
+ origin.y += h + gap;
+ }
+ }
+
+ if(todo_show_scroll_buttons)
+ ShowScrollButtons();
+ else if(todo_hide_scroll_buttons)
+ HideScrollButtons();