Re: Scrollbar?



Quoted by a swarm of renegade dogs
For `"Mee Com" <writemessage hotmail com>' 
On Wednesday, 28 January 2004 (22:12):

 But I really don't understand that why the output didn't show any of 
 scrollbar???? why????
 Although I change the code to only use BOX Container without use Table 
 Container,it still can't create any of scrollbar,it only create the tree 
 without scrollbar..............why?

        As you're using GTK_POLICY_AUTOMATIC, the scrollbar will only show when the
attached widget requires it. You've also forgot to pack the tree in scrolled
window.
        
        And not forgetting: don't use gtk_container_add on a GtkTable -- this don't
make any sense, since you won't be able to control where your widgets will be
packed; use gtk_table_attach (or gtk_table_attach_defaults) instead.

        I recommend you reading the GTK+ tutorial [1] and toying with some open source
software (there are lots of them, and most of them have their code acessible via
Web!).

        [1] http://www.gtk.org/tutorial/

-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk

 "UNIX was not designed to stop you from doing stupid things, because
  that would also stop you from doing clever things." - Doug Gwyn 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]