focus on gtk::entry after button pressed



Hello all,

I have the following question:

I have a Gtk::ComboBoxEntry and several Gtk::Buttons which put a character (from it's handler) in the entry of the combobox (it's designed for a touchscreen). This all works fine. After a click I want the focus back to the entry, so I call entry.grab_focus(). This works,
but it selects the text in the entry without seeing a cursor, and what I want is to see the cursor of the entry at the position where it was (no selection),
so when I pushed another button, it's character must be put at the new position (cursor).

Could somebody please help me?

Thanks in advance,

Greetings

Peter




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