Re: Need help w/ DrawingArea & its signals
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: Allen <allen saucier cas-inc com>, "gtkmm mailing-list" <gtkmm-list gnome org>
- Subject: Re: Need help w/ DrawingArea & its signals
- Date: Wed, 27 Jun 2007 11:08:20 -0500
On 6/27/07, Allen <allen saucier cas-inc com> wrote:
Jonner,
do you have to add events even if they are inherited from GTK::Widget?
Which is the event I'm trying to use.
from set_events()
[http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html#deb38a3d5988a0e31055bbd2edb2e954]
(which is linked to from add_events() ):
"The event mask determines which events a widget will receive. Keep in
mind that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget's functionality, so
be careful. This function must be called while a widget is unrealized.
Consider add_events() for widgets that are already realized, or if you
want to preserve the existing event mask. This function can't be used
with Gtk::NO_WINDOW widgets; to get events on those widgets, place
them inside a Gtk::EventBox and receive events on the event box."
Essentially, any widget that derives from Gtk::Widget has access to
all of the events inherited from Gtk::Widget, but they're not
necessarily enabled by default, because on some widgets they don't
make sense, so they're disabled to improve performance (since GTK+
won't have to handle unnecessary events). If you want to receive
these events, you have to explicitly enable them.
--
jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]