Page 1 of 1

zoom and unzoom

Posted: Sat May 04, 2019 8:06 am
by Silvio.Falconi
I wish insert a slider on bottom of window and zoom and unzoom particular section of wndmain ( and all controls are showed)
How make it ?

Re: zoom and unzoom

Posted: Sat May 04, 2019 10:11 am
by ukoenig
Silvio,
I wish insert a slider on bottom of window and zoom and unzoom particular section of wndmain
( and all controls are showed)
I tested to zoom sections but NOT in edit-mode only viewing that works on cursorposition
the area is defined with a given size from a bottom slider
particular section of wndmain
The zoom-section is defined with the size of the result-area
the cursor-position is the center.

here is the test :!:

You can zoom / unzoom any area on cursorposition.
A slider can be used to define the zoom-factor, a button to switch zoom on/off.

Image

regards
Uwe :D

Re: zoom and unzoom

Posted: Sat May 04, 2019 3:32 pm
by Silvio.Falconi
no I sent you a message

Re: zoom and unzoom

Posted: Mon Apr 20, 2020 8:34 pm
by RiazKhan
Hi Uwe,

Is it possible to see an example source for the Zoom In / Zoom Out function.
I would like to use this for one of my application.

Making the cursor as center point..on the main window TEXTTITLE
Thnx, Regards

Re: zoom and unzoom

Posted: Wed Apr 22, 2020 10:34 am
by Silvio.Falconi
Uwe use the zoom function of samples\zoomer.prg or zoomer2.prg

I Mean another zoom
I have 200 btns on a dialog with resize and I wish resize all controls on this dialog ( each controls can have founts and text )

sample :
for this test ( new calculator) my function run ok because the controls are all type btnbmps (the fonts are recreated for each controls)

if there are other type of control not run ok

Image

Re: zoom and unzoom

Posted: Wed Apr 22, 2020 7:16 pm
by RiazKhan
Thanks, Silvio,

Nice, magnification tool.
I will look into the sample zoomer prgs and try to fit it into my application.