nelson@melodian.cs.uiuc.edu (Taed Nelson) (09/21/90)
I'm working with X for the first time, and came across a problem that no one on this end seems to be able to help me solve, so here goes... I'm playing with Xrn, which has a Shell and a Paned widget within it. I'm trying to install some code that will be run when the window is resized. Ideally, I would like the Paned widget to get the resize (better yet, a child of the Pane, but I assume it's the same problem), but the shell does not seem to pass this event down. Anyone know how to solve this? Secondly, I tried installing the routine within the Shell using XtAddEventHandler, which works, but the other routines which used to be called for resize events (ie, the redraw of the window) are no longer called. The docs say that it should construct some sort of a chain of event handlers, but it does not seem to. I also tried putting it at the head and tail of the list by using XtInsertEventHandler, but that has exactly the same effect. Is it possible that the redraw isn't an eventHandler, but something that is called if there _aren't_ any eventHandlers? If so, how do I get around that? Thanks for any suggestions anyone might have...