MAXGUI - Zooming in and out & Scrollbars?

BlitzMax Forums/BlitzMax Beginners Area/MAXGUI - Zooming in and out & Scrollbars?

Amon(Posted 2006) [#1]
Hi, for the last 3 weeks I've been getting the skeleton code of my application done.

I'm not on this part of the code yet but I'll ask anyway.

I want to be able to zoom in and out of a canvas much like the way paint programs allow you to zoom in and out of images. Does anyone have some code on how to do this?

I would also like to implement scrollbars in the app I'm making when a canvas has been enlarged to greater than the window.

If anyone has some code or some tips on how to do this I would appreciate it.

Thanks :)


assari(Posted 2006) [#2]
Amon,
Check out my tutorial Making a MaxGUI Application: StripAnimMakerLite Part 5 - Adding the Zoom Window
There is an explanation on a zoom function (DrawPixUnderCursor).
There is also a program by WendellM in the code archives here


Amon(Posted 2006) [#3]
Thanks M8 :)