[Gtk-sharp-list] Treeview - what is this popup box?
colbec at start.ca
Sat Aug 16 05:43:24 EDT 2008
Michael Hutchinson wrote:
> On Fri, Aug 15, 2008 at 10:16 AM, colbec <colbec at start.ca> wrote:
>> Working in a treeview, when I have a column and a row selected at the
>> time and make keystrokes a text box pops up in the bottom right hand
>> of the window with the contents of the keystrokes. What is this box and
>> can I access the contents of the typing buffer here?
> It's the interactive search box. IIRC, when you have EnableSearch =
> true, the TreeView automatically implements search for you.
>> Basically I am trying to filter a model in a cellrenderercombo based on
>> chars typed at the keyboard but I'm having a problem getting a handler to
>> deal with this situation. Key press events from the tree and parent
>> seem to be ignored while in editing mode in the combo.
> How are you subscribing to key events?
> FWIW, if you want searching rather than filtering, just set
> EnableSearch = true, then either set SearchColumn to the column to be
> used for searching and/or set SearchEqualFunc to a custom comparison
> The main GTK docs have a bit more info on the way this works:
> Michael Hutchinson
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
Thankyou, this worked. I just needed to set the column to one that made some
sense in the context. The functionality is very limited so I turned it off
to reduce confusion.
The combo box issue remains. Here's the situation. I have set up a treeview
with a couple of columns displaying cellrenderercombos. With editing enabled
on these boxes and specific models applied to the comboboxes they show
strings based on integers in the underlying table. When I click on the box
the down arrow appears ready for mouse or text entry. I need to take action
based on characters entered, ie implement a filter on the model on which the
combobox is based. But I cannot at the moment trap the key press events once
in editing mode in the combobox.
This is not the Glib Connect before issue. I can set a keypresseventhandler
on the top window and tests show that key presses are reported right up
until the combobox goes into editing mode. This happens with or without glib
View this message in context: http://www.nabble.com/Treeview---what-is-this-popup-box--tp18998599p19010124.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list