[ 1550698 ] Bottom aligned toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -704,6 +704,15 @@ void wxFrame::PositionToolBar()
|
||||
,vTHeight
|
||||
);
|
||||
}
|
||||
else if (pToolBar->GetWindowStyleFlag() & wxTB_BOTTOM )
|
||||
{
|
||||
vWidth = (wxCoord)(vRect.xRight - vRect.xLeft);
|
||||
pToolBar->SetSize( vRect.xLeft - vFRect.xLeft
|
||||
,vRect.yBottom - vTHeight // assuming the vRect contains the client coordinates
|
||||
,vWidth
|
||||
,vHeight
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
wxCoord vSwidth = 0;
|
||||
|
Reference in New Issue
Block a user