XForms: How to get expose and resize ??

Wei-Cheng (wangwei@minna.cns.iit.edu)
Tue, 08 Jul 1997 15:00:05 -0600 (CST)

To subscribers of the xforms list from "Wei-Cheng (Leon) Wang" <wangwei@minna.cns.iit.edu> :

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. Suggestions ? Ideas ? Thanks !!


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/