columned list
Hello all, Please don't tell me about Columned List being deprecated: I know. What I would like to ask about it is, when I move with the up and down arrows, a rectangular box moves, but the blue highlighting stays in the same place (unlike what happens when I click with the mouse). Could someone please explain to me what the difference between the two is (that is, why two different kind of boxes), and how can I bind them together so they both move when I press the keyboard up and down arrows? Thanks, Neil ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
columned list widget?
Hi, I have an application I'm writing where I'd like to have something similar to a list widget with one type of item in it (pixmap and label pair), but is displayed newspaper column style. As the widget expands/shrinks the items should flow top to bottom of each column and then spill over to the top of the next column and so on. Win32 has something similar to this for their file open dialog (although the horizontal scroll when you have more items than displayable is incredibly counterintuitive). Does Gtk have anything of this sort? I've been looking but have been unable to find it. Thanks, Brian ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: columned list
Hi The idea is to "emulate" the mouse behaviour. If you have a large list you can scroll with the mouse, without selecting an item. Same with the cursor: you scroll the list (change focus) and then select an item (press space). To move the selection with the focus: gtk_clist_set_selection_mode( clist, GTK_SELECTION_BROWSE ); Now you need to follow the focus row - maybe connect button_press and check, if clist->focus_row has changed. Then gtk_clist_select_row( clist, focus_row, 0 ); HTH Jan-Marek ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: columned list
This is very interesting but something very odd happens when I press the down arrow key on a GtkCList which has just been created with text in it and has no selections: the first row gets a box, and if I keep moving with the down keyboard key I end up with two boxes. This is with GTK 2.4.13. Then when I press space this problem goes away. Thanks, Best Regards, Neil On Sun, 21 Nov 2004 15:26:17 +0100 (CET), Jan-Marek Glogowski <[EMAIL PROTECTED]> wrote: > Hi > > The idea is to "emulate" the mouse behaviour. If you have a large list you > can scroll with the mouse, without selecting an item. Same with the > cursor: you scroll the list (change focus) and then select an item (press > space). > > To move the selection with the focus: > > gtk_clist_set_selection_mode( clist, GTK_SELECTION_BROWSE ); > > Now you need to follow the focus row - maybe connect button_press and > check, if clist->focus_row has changed. Then gtk_clist_select_row( clist, > focus_row, 0 ); > > HTH > > Jan-Marek > ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
columned list, programmatic highlighting, and self-adjusting scrollbars
Hello, I have a columned list and would like to know the following: Suppose I highlight a row from the columned list programmatically. I would like the scrollbar to adjust itself so that the highlighted row is the first one to be displayed. Is this possible with GTK? How? Thanks, Neil ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list