[Gtk-sharp-list] Drawing Area and Mouse Button Signals
Brad Taylor
brad@getcoded.net
Tue, 24 Aug 2004 15:25:11 -0700
--=-RkzgWp5F4q4cHlc6g9IH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi everyone,
> The code should read:
>=20
> > drawingarea =3D new Gtk.DrawingArea();
> > drawingarea.SetSizeRequest(700, 400);
> -----> // vbox2.PackEnd(drawingarea);
> >=20
> > drawingarea.ExposeEvent +=3D new ExposeEventHandler(drawingarea_expo=
se_event_cb);
> > drawingarea.ConfigureEvent +=3D new ConfigureEventHandler(drawingare=
a_configure_event_cb);
> > drawingarea.MotionNotifyEvent +=3D new MotionNotifyEventHandler(draw=
ingarea_motion_notify_event_cb);
> > drawingarea.ButtonPressEvent +=3D new ButtonPressEventHandler(drawin=
garea_button_press_event_cb);
> > drawingarea.Events =3D EventMask.ExposureMask | EventMask.LeaveNotif=
yMask |
> > EventMask.ButtonPressMask | EventMask.PointerMotionMask |
> > EventMask.PointerMotionHintMask;
> >=20
> > drawingarea.CanFocus =3D true;
> > drawingarea.GrabFocus();
> >=20
> > canvas =3D new DamageCanvas(drawingarea);
> -----> vbox2.PackEnd(drawingarea);
>=20
> > main_window.Resize(800, 500);
> >=20
Ah! So thats why John's solution worked! Thanks very much!
-Brad
--=20
Brad Taylor
Genome Software LLC
http://www.getcoded.net
--=-RkzgWp5F4q4cHlc6g9IH
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQBBK8BHWZT8MXyJ2AURAtqXAJ0aEHm/9yq865EsBm8gEwrJke53wQCfd6+h
1dmxhmSG42l7Ty19kup1gr8=
=8YE8
-----END PGP SIGNATURE-----
--=-RkzgWp5F4q4cHlc6g9IH--