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

hscrollbars on clist-widget



Hi there,

its me again..8)

Another strange problem... I put a clist (or ctree) into a
scrolled window like this:

        scrolled_win = gtk_scrolled_window_new (NULL, NULL);
        gtk_box_pack_start(GTK_BOX(vbox),scrolled_win,TRUE,TRUE,0);
        gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
                GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC);
        gtk_widget_show(scrolled_win);

	cd_list = gtk_clist_new_with_titles(2,titles);
        gtk_container_add (GTK_CONTAINER (scrolled_win), cd_list);

Works fine...
but the hscrollbar is never displayed, even when I put a so long text
into the clist that is "cut off". If I change the policy to "always"
it works ok, but looks not so good. All is perfect with the 
vscrollbar.. displayed on demand.

Tried this with gtk 1.2.1 and 1.2.3 on linux.

Anybody got a clue?

Thanx,

thomas

  ___ ___               
 /   |   \  ___________   | REAL   : Thomas Niederreiter: Munich, Germany  
/    ~    \/  _ \_  __ \  | EMAIL  : tn@mailserv.rz.fh-muenchen.de 
\    Y    (  <_> )  | \/  | IRC    : _Hor  
 \___|_  / \____/|__|     | 
       \/ All I want is a warm bed and a kind word and unlimited power         
                      -- Ashleigh Brilliant



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