Implement vertical toolbar under Motif.

Notify parent frame when toolbar is moved/resized/added/deleted so that
frame childs can be correctly repositioned.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-16 20:41:07 +00:00
parent b05206c98b
commit 46675b4610
4 changed files with 94 additions and 24 deletions

View File

@@ -603,6 +603,13 @@ void wxFrame::OnActivate(wxActivateEvent& event)
}
}
void wxFrame::SendSizeEvent()
{
wxSizeEvent event(GetSize(), GetId());
event.SetEventObject(this);
GetEventHandler()->AddPendingEvent(event);
}
#if wxUSE_TOOLBAR
wxToolBar* wxFrame::CreateToolBar(long style,
@@ -617,6 +624,12 @@ wxToolBar* wxFrame::CreateToolBar(long style,
return m_frameToolBar;
}
void wxFrame::SetToolBar(wxToolBar *toolbar)
{
wxFrameBase::SetToolBar(toolbar);
SendSizeEvent();
}
void wxFrame::PositionToolBar()
{
wxToolBar* tb = GetToolBar();