Re: Expose events
- From: Adrian Feiguin <feiguin ifir ifir edu ar>
- To: "K. M. Hawarden-Ogata" <hawarden duke ifa hawaii edu>
- cc: GTK Mailing List <gtk-devel-list redhat com>
- Subject: Re: Expose events
- Date: Tue, 27 Apr 1999 09:14:29 +0000 (GMT)
On Mon, 26 Apr 1999, K. M. Hawarden-Ogata wrote:
> Hi, I was wondering if someone could help me...
>
> I am writing a program that plots a graph and has various buttons that do
> things like read in data and plot a fitted curve to that data.
> My question is: Is there a nice way to force the drawing area widget to
> redraw after every event, i.e., after I click my "read in data" button, it
> automatically plots the data points on my drawing area.
>
gtk_widget_set_events(darea, gtk_widget_get_events(darea) |
GDK_EXPOSURE_MASK);
gtk_signal_connect(GTK_OBJECT(darea), "expose_event",
(GtkSignalFunc) expose_handler);
> Thanks, Miranda
>
> /------------------------------------------------------------------------\
> | Miranda Hawarden-Ogata Email: hawarden@irtf.ifa.hawaii.edu |
> | NASA IRTF, Institute of Astronomy Phone: (808) 974-4206 |
> | 1175 Manono St., Bldg 393 Fax: (808) 974-4207 |
> | Hilo, HI 96720 |
> \------------------------------------------------------------------------/
>
>
>
> --
> To unsubscribe: mail gtk-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]