<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />I know the mousebox captures click and drag functionality, but can it also capture scrolling?
I'd like to implement a "zoom-in/out" feature for several pictures I display, and I'd prefer to do it via ctrl+scroll--similar to a web browser. I think it would be easy to add this feature if I used buttons or a slider box, but that would use up real estate and I'd rather avoid it.
Thoughts?
Ok, thanks for the info! It would still be great to get scroll-wheel support, but your comments helped me solve my issue. However, It feels like the zoom-in/zoom-out is too aggressive for my purposes, but it's still better than nothing.
//Before:
img = New Image( "$SAMPLE_IMAGES/tile.jpg" );
img << Set Size({150,150});
win = New Window( "ImageOld", img );
//Now:
img = New Image( "$SAMPLE_IMAGES/tile.jpg" );
imgbox = Graph Box( FrameSize( 150, 150 ), SuppressAxes,
<<Add Image( image( img ), bounds( top( 100 ), Left( 0 ), bottom( 0 ), Right( 100 ) ) )
);
win = New Window( "ImageNew", imgbox );
The mouse box does not have scroll-wheel support. But it is a good idea, thanks!
It looks like control-scroll-wheel does zoom a graph in JMP 12. The display error you might see if the graph resizes while zooming has been fixed for the next version; control-D will refresh the graph.