[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

598.0. "Event Processing (self or parent)" by CALL::SWEENEY (Wall Street is my beat) Fri Apr 14 1989 01:14

    Sorry but DECWINDOWS_PROGRAMMING is unavailable right now.
    
    Windows are, of course, rectangles.  By using a window with background
    pixmap = parent relative, the drawing operations are not obvious to the
    user as being clipped to that rectangle.
    
    There is a "hot" polygon that I would like to some events in, but if
    the event (button or otherwise) is outside that polygon, I'd like to
    send it to the parent window.
    
    The context is the parent window is defined by a adb-like widget
    (subclass of constraint), and the window is also defined by a push
    button-like widget (subclass of core). Both are being written by me.
    
    Is the solution as simple as
    
    	if (event is in hot-polygon) process the event
        else XSendEvent (XtDisplay(parent),XtWindow(parent)...
    
    inside an action routine in the widget... or is there a better way.

T.RTitleUserPersonal
Name
DateLines
598.1Don't do a round trip, pleaseDECWIN::KLEINFri Apr 14 1989 12:346
Why don't you just jam the parent's window ID into the event block and call
XtDispatch from within the child widget's event handler?  You may also
have to adjust the event coordinates, but I assume you've thought about that.

-steve-