List Info

Thread: Re: Toolbook tabs go off the screen




Re: Toolbook tabs go off the screen
country flaguser name
United Kingdom
2007-11-05 02:58:54
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


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


Re: Re: Toolbook tabs go off the screen
country flaguser name
United States
2007-11-05 12:47:26
Craig Douglas wrote:
> 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.

Ah, I understand now.  You are referring to the non-focused
selection color.

> 
> Would I be better off implementing my own book using a
scrolled widget to 
> contain buttons?

That would work.  There is also some 3rd party widgets out
there that 
might work for you, such as Andrea's LabelBook.  Or if it
makes sense 
you could reorganize your app so you don't need so many
pages (perhaps 
have nested ToolBooks for example.)

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )