Zooming programatically

96 views
Skip to first unread message

ZermattMan

unread,
Mar 20, 2012, 1:51:28 AM3/20/12
to simile-...@googlegroups.com
I have implemented zooming from the mouse button, and would like to be able to execute it from a button click instead.
 
 I read the following in one of the Simile pages:
How to zoom programmatically:
// Zoom in: 
 
Timeline.getBand(0).zoom(true); // true zooms in, false zooms out
 
// You might want to repaint after
Timeline.getBand(0).paint();
and naively thought I could put this code behind 2 buttons and away we go. But no!
 
Can anyone point me in the right direction for this, please?
 
TIA
 
 
Andrew McGurk

ZermattMan

unread,
Mar 24, 2012, 8:28:45 PM3/24/12
to simile-...@googlegroups.com
Fixed it, thanks!
Reply all
Reply to author
Forward
0 new messages