I have a
Gtk::ListStore filled with row data.
I want the user to be able to type the row data they want to select so I am using a
I have found a code sample to implement this here
// Configure the Completion m_refEntryCompletion = Gtk::EntryCompletion::create(); m_refCompletionModel = Gtk::ListStore::create(m_completionRecord); m_refEntryCompletion->set_model(m_refCompletionModel); m_entry.set_completion(m_refEntryCompletion); cout<<m_entry.get_completion(m_refEntryCompletion); m_refEntryCompletion->set_text_column (m_completionRecord.col_text); m_refEntryCompletion->set_minimum_key_length(1); m_refEntryCompletion->set_popup_completion(true); this->populateCompletion();
I want to extract the check that the user has entered into the
Example here Solvakia is one of the country in the list.
When user has completed selection.
- How do I come to know when the user has completed selection?
- How do I extract the Completed Entry so that I highlight in the list?