RE: [gtkmm] How to capture Enter pressed on a Entry?
- From: Javier Vilarroig <jvilarroig terra es>
- To: Dale Hirt <dale sbcltd com>
- Cc: GTKMM Mailing List <gtkmm-list gnome org>
- Subject: RE: [gtkmm] How to capture Enter pressed on a Entry?
- Date: 11 Sep 2002 20:40:22 +0200
Thanks.
I tried but doesn't worked. I don't know what do you mean with
realized. I moved it out of the constructor and tried whe I cans see the
form. The error message is exactly the same.
El mié, 11-09-2002 a las 20:15, Dale Hirt escribió:
> Have you tried doing a {entry_widget}.show() before calling set_events()?
> >From the error, it looks like there is a need to realize the widget first.
>
> -----Original Message-----
> From: Javier Vilarroig [mailto:jvilarroig terra es]
> Sent: Wednesday, September 11, 2002 11:04 AM
> To: GTKMM Mailing List
> Subject: [gtkmm] How to capture Enter pressed on a Entry?
>
>
> Hi.
>
> I'm writing my first app with gtkmm and I have a doubt.I love gtkmm
> but
> have no knowledge of gtk+.
>
> I supose it's a silly question, but I have not found any clue on the
> docs.
>
> I'm trying to capture when a user presses the Enter key on a Entry.
> I
> tried to capture GDK_KEY_PRESS, but calling set_events, inerited from
> Widget, from the constructo gives me this error:
>
> --------------
> Gtk-CRITICAL **: file gtkwidget.c: line 3824 (gtk_widget_set_events):
> assertion `!GTK_WIDGET_REALIZED (widget)' failed
> --------------
>
> Cold be this is not the correct way, but I don't see any other
> option.
>
> Thanks in advance.
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]