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

[REBOL] view and lost events

From: sags::apollo::lv at: 23-Jan-2006 23:14

Help - I am lost between read-thru and view face events! I have a view that works like simple Mapserver client with zoom box, etc. I made new version that supports panning, by dragging with mouse. All worked fine (zooming, panning) until I changed simple loading map image from "load" to read-thru/to (see example bellow). Zoom box worked, but while mapfile loads it slowly follows cursor instead that by script logic (that I did not change) it should stop. And my map pane no more returning to zero offset after map image loading. How to not loose control over (mouse) events, when read-thru works? Or what hapens with feels when read-thru works and how to manage those proceses? loadMapImg: func [ mapUrl /local rezImg ][ if exists? %mapImg.gif [ delete %mapImg.gif ] either attempt [ rezImg: read-thru/to mapUrl %mapImg.gif ; rezImg: load mapUrl ][ return load %mapImg.gif ; return rezImg ][ return none ] ]