Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Event redirection within face hierachies

From: james:mustard at: 20-Jun-2004 12:15

Hi all, been reading / googling about the event datatype and its elusive innards ;) Does anyone (Cyphre?) know if there are plans to let us modify the insides of events during event trapping? Thinking of things such as offset redirection and action manipulation here (eg a click somewhere elicits an alt-click elsewhere) I have looked at the 'fake' event comments etc from the dev list but on the whole all it seems we can do is trap and playback. In the ideal rebol gui world this is what I expect should work: As an example - a mapping application displaying aerial photographs. This application uses overlays over the map data for visual cues for the pilot. There is a contour overlay and a weather overlay The pilot needs to be able to view both and plot a course onto a separate course plan. This requires the following rebol face structure (ideally) Main application face subfaces for: map plan screen (acts as a point to point line drawing surface) contour overlay weather overlay control overlay (contains various buttons / scrollbars to handle map movement, visible layers etc) As the control overlay is the topmost (active) window it is receiving the events. If these events are not triggering a subcontrol located on the control face then these event need to be propagated downwards to the plan screen for final input to be analysed and acted upon. If the pilot clicks in the control overlay this plots a point on the map - clicking and holding the mouse down will draw a dynamic line which will get placed once an up event is received. Is this possible now? Am I missing something? Remember that the control overlay face has to do pre-processing of events to determine if a control needs to be pressed or if the event should be redirected to the plan face.. Regards, James.