repaired recently broken framelayout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -354,9 +354,9 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent )
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pChild->ReParent( pNewParent );
|
//pChild->ReParent( pNewParent );
|
||||||
|
|
||||||
return;
|
//return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxMessageBox( "Sorry, docking is not supported for ports other than MSW and wxGTK" );
|
wxMessageBox( "Sorry, docking is not supported for ports other than MSW and wxGTK" );
|
||||||
|
@@ -342,7 +342,7 @@ void wxDynamicToolBar::SizeToolWindows()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDynamicToolBar::Layout()
|
bool wxDynamicToolBar::Layout()
|
||||||
{
|
{
|
||||||
if ( !mpLayoutMan ) mpLayoutMan = CreateDefaulLayout();
|
if ( !mpLayoutMan ) mpLayoutMan = CreateDefaulLayout();
|
||||||
|
|
||||||
@@ -359,6 +359,7 @@ void wxDynamicToolBar::Layout()
|
|||||||
mpLayoutMan->Layout( wndDim, result, items, mVertGap, mHorizGap );;
|
mpLayoutMan->Layout( wndDim, result, items, mVertGap, mHorizGap );;
|
||||||
|
|
||||||
SizeToolWindows();
|
SizeToolWindows();
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDynamicToolBar::GetPreferredDim( const wxSize& givenDim, wxSize& prefDim )
|
void wxDynamicToolBar::GetPreferredDim( const wxSize& givenDim, wxSize& prefDim )
|
||||||
|
@@ -141,7 +141,7 @@ public:
|
|||||||
virtual void DrawSeparator( wxDynToolInfo& info, wxDC& dc );
|
virtual void DrawSeparator( wxDynToolInfo& info, wxDC& dc );
|
||||||
|
|
||||||
// see definitions of orientation types
|
// see definitions of orientation types
|
||||||
virtual void Layout();
|
virtual bool Layout();
|
||||||
|
|
||||||
virtual void GetPreferredDim( const wxSize& givenDim, wxSize& prefDim );
|
virtual void GetPreferredDim( const wxSize& givenDim, wxSize& prefDim );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user