[comp.windows.open-look] xv_send_message and drag-and-load

bert@hcsrnd.UUCP (Bert Holstein) (03/15/91)

Hi there, 

I seem to have a problem with xv_send_message (see O'Reilly XVPG section 6.7).
I tried to write a program in which the user selects a few string which the
program concatenates into a file pathname. When the user selects a drag-object
(just a fancy icon) with the SELECT mouse button, the subwindows event-handler
notices this and checks the dragging until the dragging is done and an
ACTION_SELECT with event_is_up(event) is encountered. If the latter is the
case, the event-handler will call xv_send_message as follows:

	xv_send_message(the_subwindow, PointerWindow, "XV_DO_DRAG_LOAD",
		32, &msg, sizeof(msg));

with msg being a little struct with some extra information. (Well, to be true
I want the same kind of client message as sent by the OpenWindows filemgr.)
All what happens, but in no way a WIN_CLIENT_MESSAGE event is generated on
the window on which the 'icon' is dropped. When I try all kinds of
WIN_CONSUME_EVENTS on the target window (a canvas), then the first event
it receives is a 'LOC_WINENTER' event.
Probably, I forget something important.

Any help would be appreciated.

                                                with kind regards
                                                Bert Holstein,
                                                HCS IA Aerospace

       *
      *** Bert Holstein

    ******* HCS IA
   ********* Aerospace

 ************* E-mail: hcsrnd!bert@hp4nl.nl
*************** Telefax: +31 (0)55 498714