---------- Forwarded message ----------
Date: Tue, 8 Jul 1997 18:20:29 -0500 (CDT)
From: LEON@purger.uchicago.edu
To: RENHWANG@TEKTERM.csam.iit.edu
Cc: LEON@purger.uchicago.edu
Subject: questions
I am running a xforms 0.86 on OpenVMS 6.2 of a DEC alpha. How to detect
the resize (reshape) and expose events of the form, if I create a form by fl_bgn_form()?
Currently, I create my own application window by fl_wincreate(), and
register the events needed to handle by fl_addto_selected_xevent(WinID,
ExposureMask | StructureNotifyMask) and tell the form where to process events by
fl_set_event_callback(events_handler, whatever). In the events_handler, it can
see the expose event once the obscured window was uncovering. But, it can not get the
expose event at the first time the window is popuping ?? So, I could
not initialize the ximage and put them (XPutImage) on top of the window by simply dectecting the exposure of the window. By the way,
if I set the window
background (fl_winbackground(WinID, bkcolor)), then it can not get expose
event any more though I uncover the covered window. However, it still can detect the
resize event. What is wrong with it ? Maybe you wonder why don't use canvas and register the canvas handler to process the resize and expose events ? I did, it worked but is unefficient to display a small image (200x200). Instead of canvas, I also
tried to use a pixmap and it is much faster but I have no idea how to dectect the resize and expose events happening, therefore, I want to create my own window by some useful xforms funtions.
leon
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/