[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: CTree has ho horizontal scrolling?
- From: J Blunck tu-harburg de
- To: gtk-app-devel-list redhat com
- Subject: Re: CTree has ho horizontal scrolling?
- Date: Sun, 29 Aug 1999 20:35:28 +0200 (CEST)
On 29 Aug, Danny Dulai wrote:
> I was aware that the text widget has no horizontal scrollbar because its
> set to autowrap always, but how about CTree? If I stick very wide rows
> into it, the horizontal scrollbars do not pop up (automatic mode) on the
> parent scrolledwindow. They work fine vertically.
>
For me this is working great:
-8<--
/* Create Message List */
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_paned_add1 (GTK_PANED (vpaned), scrolled_window);
gtk_widget_set_usize (GTK_WIDGET (scrolled_window), 250, 200);
gtk_widget_show (scrolled_window);
message_ctree = gtk_ctree_new_with_titles(3, 0, message_ctree_titles);
gtk_clist_set_column_auto_resize (GTK_CLIST (message_ctree),
0, TRUE);
gtk_clist_set_column_auto_resize (GTK_CLIST (message_ctree),
1, TRUE);
gtk_clist_set_column_auto_resize (GTK_CLIST (message_ctree),
2, TRUE);
gtk_clist_set_selection_mode(GTK_CLIST (message_ctree),
GTK_SELECTION_SINGLE);
gtk_container_add (GTK_CONTAINER (scrolled_window), message_ctree);
gtk_widget_show (message_ctree);
-8<--
Regards,
Jan
--
"May the source be with you !"
--
Jan Blunck Technische Universität Hamburg-Harburg
J.Blunck@tu-harburg.de http://www.tu-harburg.de/~sejb3103/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]