wxToolBar understanding problem

Lothar Behrens lothar.behrens at lollisoft.de
Sun Feb 18 10:32:31 PST 2007



DetachPane(...) and
re adding the toolbar after adding a tool solved the problem :-)

Lothar

Lothar Behrens schrieb:

> "Stefan Csomor" schrieb:
>
> > Hi
> >
> > are you using CreateToolBar from wxFrame ?
>
> I had trouble with the toolbar in conjunction with the wxAUI library.
> I have used SetToolBar to set
> the toolbar to the frame and used both (new wxToolBar and
> CreateToolBar from wxFrame) before
> the call to SetToolBar. (Both did not solved the problem)
>
> I figured out, having wxAUI in use, I shouldn't use SetToolBar on the
> frame. It has to be in a wxAUI
> pane.
>
> What is problematic for now is that if I drag the pane away from top
> of the frame, only one tool would
> be shown. If I resize the frame, my OnSize handler calls
> m_mgr.Update() for now, will recalculate
> the size for the panel and all tools would be shown.
>
> Which event handler I also should implement to display all tools while
> dragging ?
>
> Thanks, Lothar
>
> >
> > Best,
> >
> > STefan
> >
> > > -----Original Message-----
> > > From: H [mailto:H at h.com]
> > > Sent: Sonntag, 18. Februar 2007 09:52
> > > To: wx-users at lists.wxwidgets.org
> > > Subject: Re: [wxMac] wxToolBar understanding problem
> > >
> > >
> > > In article <1171480530.191258.220350 at v45g2000cwv.googlegroups.com>,
> > >  "Lothar Behrens" <lothar.behrens at lollisoft.de> wrote:
> > >
> > > > Hi,
> > > >
> > > > I have created a toolbar and have set it's parent to my frame. Also
> > > I
> > > > have a panel, where are my
> > > > other windows located.
> > > >
> > > > The toolbar influences the remaining size for the panel, but the
> > > > toolbar seems to have two rows and my sub windows would overlap
> > > with
> > > > the second row.
> > > >
> > > > Some ideas ?
> > > >
> > > > Thanks, Lothar
> > >
> > > Hi Lothar,
> > >
> > > I think there is something else wrong in your code. The wxToolbar
> > > works
> > > fine for me under Mac OSX.
> > >
> > > Hartwig
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org







More information about the wx-users mailing list