Re: Search in ComboBox
- From: Murray Cumming <murrayc murrayc com>
- To: Kosa <kosa piradio org>
- Cc: gtkmm-list gnome org
- Subject: Re: Search in ComboBox
- Date: Mon, 02 Jun 2008 10:37:05 +0200
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]