[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
2 quick questions: CList and Text
- From: Mike Clark <macst92+ pitt edu>
- To: gtk-app-devel-list <gtk-app-devel-list redhat com>
- Subject: 2 quick questions: CList and Text
- Date: Fri, 25 Jun 1999 19:07:00 -0500
I am having two particularly annoying problems with gtk.
first, i would like to know if there is a way that a particular row
within a CList can grab focus. i would like to be able to do a
gtk_clist_select_row() on any particular row and also have that row grab
keyboard focus so that pressing the up and down arrow keys will move
from that row.. right now it will only move from the first row in the
clist.
second, i want to have a GtkText item that will scroll both horizontally
and vertically. i am putting it inside a GtkScrolledWindow, but it will
only scroll vertically. the text will wrap instead of scrolling
horizontaly. I have tried turning off line/word wrap on the GtkText
object with no success. heres a snippet:
sw = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_widget_set_usize(sw, 15, 15);
gtk_widget_show(sw);
view->command_text = gtk_text_new(NULL, NULL);
gtk_text_set_editable(GTK_TEXT(view->command_text), FALSE);
gtk_text_set_line_wrap(GTK_TEXT(view->command_text), FALSE); /*
have tried it without this */
gtk_widget_set_usize(view->command_text, 15, 15);
gtk_container_add(GTK_CONTAINER(sw), view->command_text);
gtk_widget_show(view->command_text);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]