Scrollbar?



Why can't add scrollbar to hbox nor table while using "tree widget"?
I create vbox for use in Pane widget like this......

hbox9 = gtk_vbox_new (FALSE, 0);
 gtk_container_add (GTK_CONTAINER (frame1), hbox9);
 gtk_widget_show (hbox9);

and create table ,then add to this vbox , like this .....

 table = gtk_table_new (8, 8, FALSE);
 gtk_container_add (GTK_CONTAINER (hbox9), table);
gtk_widget_show(table);

and I add tree in this table.............

/* Just add tree */
/* A generic scrolled window */
 scrolled_win = gtk_scrolled_window_new (NULL, NULL);
 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
                                  GTK_POLICY_AUTOMATIC,
                                  GTK_POLICY_AUTOMATIC);
// gtk_widget_set_size_request (scrolled_win, 10, 20);

     gtk_container_add (GTK_CONTAINER (table), scrolled_win);
 gtk_widget_show_all (scrolled_win);

 /* Create the root tree */
 tree = gtk_tree_new ();

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?
Thanks for all of your advise!
Regards,

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




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