I wanted to use READ-THRU because of progress bar.
But I tried load-thru, but the result are the same.
I am just confused about why when I am using just LOAD all face 
feels/events works like expected, but when I am using (instead of 
LOAD) LOAD-THRU or READ-THRU it works differently.



Janeks


On 24 Jan 2006 at 19:49, Anton Rolls wrote:

> You should use LOAD-THRU.
> 
>  returns a binary, and is like READ/BINARY through the cache.
> LOAD-THRU does a READ-THRU and then LOADs the returned data for you.
> 
> Anton.
> 
> > 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
> >     ]
> > ]
> 
> 



-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to