Re: Gtk2::Entry - manipulating key-press-event?

On Nov 27, 2004, at 1:35 PM, Martin Junius wrote:

My idea to achieve this is catching key-press-events, checking for keypad something, modify the event, and send it on to the application. Is this the canonical way to do this? Or is there an easier route?

try the GtkEditable's "insert-text" event --- you get an opportunity to edit the text that will be entered in the entry. there's an example using it: examples/

Examples really shouldn't include unexploded ordnance.
  -- Joe Smith, referring to an example program i wrote.

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