Hacking the GUI

Earthednet-wp prothero at earthednet.org
Wed Oct 9 01:36:27 EDT 2013


Folks,
Thanks for the comments. What I'm doing is dragging an image that is larger than the viewing area. I set the loc of the image (according to the mouseloc) inside a repeat loop. The general idea is below.

On drag
  repeat while the mouseStillDown
       --set the loc of the image according to the mouseloc
  end repeat
end drag

The motion of the image is pretty jerky. It's a pretty large image. The reason I wanted to add and subtract points is to calculate the new loc for the image. I do this now by separating out x and y and operating on them individually. I suspect that most of the time is spent moving that large image, though, instead of doing the calculations.

The image is a map, and I intend on plotting symbols on it. To speed this up, I'm plotting on a snapshot of the visible part of the image (which sits on top of the visible part). The plot will need to be updated each time the map is dragged or is magnification changed.

If there is a faster way to move a large image around, I'd like to hear of it.

Thanks again,
Bill

William Prothero
http://es.earthednet.org

On Oct 8, 2013, at 7:33 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:

> On 10/8/13 9:29 PM, Monte Goulding wrote:
>> 
>> On 09/10/2013, at 1:25 PM, J. Landman Gay wrote:
>> 
>>> I think my answer was condescending, I apologize.
>> 
>> Maybe I read a different answer ;-)
>>> 
>>> The dictionary in 6.1.1 doesn't have an example of addition in the points entry. Is that in a different version's dictionary?
>> 
>> It's the point entry not the points entry.
> 
> Aha. Thanks, found it.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list