Toolbook tabs go off the screen
Mike Driscoll
mdriscoll at co.marshall.ia.us
Mon Nov 5 07:13:24 PST 2007
> -----Original Message-----
> From: Craig Douglas [mailto:craig.douglas at rtkinstruments.com]
> Sent: Monday, November 05, 2007 2:59 AM
> To: wxpython-users at lists.wxwidgets.org
> Subject: Re: Toolbook tabs go off the screen
>
> Robin Dunn <robin <at> alldunn.com> writes:
>
> >
> > Craig Douglas wrote:
> > > If the Toolbook contains more pages than it can display
> across the
> > > top no scroll bar appears like it would with the
> Listbook. Is there
> > > an option I'm missing or is the functionality simply not there?
> >
> > It's not there. Toolbook uses a wx.ToolBar and so it can
> only do what
> > wx.Toolbar can do.
> >
> > >
> > > If the latter is true, how could I go about implementing this? I
> > > was using a Listbook but I need a way of knowing which page is
> > > currently selected easily and the Toolbook does this excellently.
> >
> > book.GetSelection() should work correctly for any of the
> book classes.
> > If not then it is a bug that needs to be filed at SourceForge.
> >
>
>
> I meant I need the user to always know which page they are
> on. The Toolbook clearly shows this because they are like
> toggle buttons, but the listbook just highlights when clicked
> and if clicked elsewhere then it isn't very obvious which
> page you are on.
>
> Would I be better off implementing my own book using a
> scrolled widget to contain buttons?
>
> My only other choice is to put some type of title on the page
> but I don't really want to waste that kind of room and I
> really need the pictorial tabs like these type of books provide
>
> Craig
>
>
Why not set the title of the frame/panel when the user chooses a tab? Then
they'll know what tab their on and it won't take any extra screen real
estate.
Mike
More information about the wxpython-users
mailing list