Re: Search in ComboBox



On Sat, 2008-05-31 at 21:15 -0700, Kosa wrote:
> > You need a entry and also the EntryCompletion class. The widget you can 
> > see is the gtk::entry
> > http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1EntryCompletion.html
> > 
> 
> Hi there
> 
> I'm trying to do that same thing, but using a comboboxentry, wich gets the
> list from a DB.
> 
> This is my code and it gets the values from the DB and show them as a
> combolist, but I have
> no idea of how to add that autocomplete function to that. This is my code so
> far.

Here is an example of autocompletion with Gtk::Entry. It's not yet in
the book.
http://svn.gnome.org/viewvc/gtkmm-documentation/trunk/examples/book/entry/completion/

But I don't believe there is any set_completion() function for
ComboBoxEntry. It wouldn't make much sense to me - then you'd have a
drop-down for completion and a drop-down for the combobox items.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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