summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4a04898)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70114
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-bool wxAuiTabContainer::IsTabVisible(int tabPage, int tabOffset, wxDC* dc, wxWindow* /*wnd*/)
+bool wxAuiTabContainer::IsTabVisible(int tabPage, int tabOffset, wxDC* dc, wxWindow* wnd)
{
if (!dc || !dc->IsOk())
return false;
{
if (!dc || !dc->IsOk())
return false;
// See if the given page is visible at the given tab offset (effectively scroll position)
for (i = tabOffset; i < page_count; ++i)
{
// See if the given page is visible at the given tab offset (effectively scroll position)
for (i = tabOffset; i < page_count; ++i)
{
+ wxAuiNotebookPage& page = m_pages.Item(i);
+ wxAuiTabContainerButton& tab_button = m_tabCloseButtons.Item(i);
+
rect.x = offset;
rect.width = m_rect.width - right_buttons_width - offset - 2;
rect.x = offset;
rect.width = m_rect.width - right_buttons_width - offset - 2;
return false; // haven't found the tab, and we've run out of space, so return false
int x_extent = 0;
return false; // haven't found the tab, and we've run out of space, so return false
int x_extent = 0;
+ m_art->GetTabSize(*dc,
+ wnd,
+ page.caption,
+ page.bitmap,
+ page.active,
+ tab_button.curState,
+ &x_extent);
+
offset += x_extent;
if (i == (size_t) tabPage)
offset += x_extent;
if (i == (size_t) tabPage)