Partial fix to bug #1040607: support for vertical orientation in win32 renderer of wxUniv notebook.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-11-15 11:25:13 +00:00
parent 5d7457f9ca
commit 00e086a7f0
2 changed files with 130 additions and 63 deletions

View File

@@ -745,8 +745,16 @@ wxRect wxNotebook::GetTabsPart() const
const wxSize indent = GetRenderer()->GetTabIndent();
if ( IsVertical() )
{
rect.x += indent.y;
rect.y += indent.x;
if ( dir == wxLEFT )
{
rect.x += indent.y;
rect.width -= indent.y;
}
else // wxRIGHT
{
rect.width -= indent.y;
}
}
else // horz
{