| Did you know ... | Search Documentation: |
| event<-inside_sub_window |
|frame|window] -> frame|window<-window
refers to the window in which the event occurred. If a window has the
event focus however,
event<-window
returns the window that has the focus rather than the window where the
pointer is.
get(Event, inside_sub_window, Frame)
will return the XPCE frame in which the event occurred.
get(Event, inside_sub_window, Frame, Window)
will return the window in which the event occurred, where Frame is the return value of the previous call. This call returns the actual window (not the window_decorator object) if the event occurred in a normal window. If the event occurred in a decoration (scroll_bar object, window-label) the window_decorator is returned.
This method is used by the Prolog defined class drag_and_drop_gesture
to locate the target for the drop operation which may be in another
window. See
$PCEHOME/prolog/lib/pce_drag_and_drop.pl.