rPreview ZOOM problem

rPreview ZOOM problem

Postby TimStone » Thu Nov 14, 2013 7:36 pm

FWH 13.09

rPreview zoom has been fine in the past. Now, when selecting the Zoom control, the display goes to the full width of the screen, but does not adjust properly on the vertical scale. Thus the letters are stretched to the point ( on a widescreen monitor ) that they are difficult to read.

Is there an adjustment we can make to the source to resolve this ?

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: rPreview ZOOM problem

Postby cnavarro » Thu Nov 14, 2013 7:59 pm

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: rPreview ZOOM problem

Postby TimStone » Thu Nov 14, 2013 9:20 pm

It would appear that solution could involve changing hundreds of separate code lines.

Surely there should be a resolution within the rpreview program to correct whatever changed.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: rPreview ZOOM problem

Postby cnavarro » Thu Nov 14, 2013 9:30 pm

Tim
Excuse my English, I use google translate
In version 13.08 these lines were not commented / ** / and now in the current version are discussed
Eliminating these symbols of comment / ** / to me preview works properly

Tim
Disculpe mi ingles, uso translate google
En la version 13.08 estas lineas no estaban comentadas /* */ y ahora en la version actual aparecen comentadas
Eliminando esos simbolos de comentario /* */ a mi me funciona el preview correctamente

CLASS TMetaFile

METHOD Paint
Code: Select all  Expand view  RUN

        SetWindowExt( ::hDC, 100, 100 )
        if ::nVRatio == nil
           ::SetCoors()
        endif  
        SetViewportExt( ::hDC, 100 * ::nXZoom, 100 * ( ::nYZoom / 2 ) * ::nVRatio * ::Super:nWidth() / ::Super:nHeight() )
        nHStep = ( ::Super:nWidth() * ( ::nXZoom - 1 ) ) / 9.8
        nVStep = ( ( ::Super:nWidth() * ::nXZoom * ::nVRatio ) - ::Super:nHeight() ) / 10.3
        SetViewOrg( ::hDC, -::nXorig * nHStep, -::nYorig * nVStep )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: rPreview ZOOM problem

Postby TimStone » Thu Nov 14, 2013 10:23 pm

Yes, that resolves the problem.

Was there a reason for that change, and will it cause problems elsewhere ?

Thank you.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: rPreview ZOOM problem

Postby Antonio Linares » Fri Nov 15, 2013 12:51 pm

Tim,

I have found that on some printers it works much better without those lines.

Does it look very different without those lines there for you ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: rPreview ZOOM problem

Postby ORibeiro » Fri Nov 15, 2013 2:08 pm

Cristobal,

I found this problem.

That changes in TMETAFIL.PRG resolves the problem completaly.

Thank you.
Oscar Ribeiro
OASyS Informática
Fwh18.02 + xHarbour 1.2.3 + Bcc72
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil

Re: rPreview ZOOM problem

Postby TimStone » Mon Nov 18, 2013 3:46 pm

Antonio,

Sorry I didn't respond earlier. Yes, it looks very different. With that code in place the zoomed page is almost unreadable. It simply stretches the page horizontally and it becomes quite distorted.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: rPreview ZOOM problem

Postby Greg Gammon » Wed Jan 22, 2014 5:45 pm

I am having the same ZOOM problem with PREVIEW (having just upgraded to FWH13x).

I removed the */ comment lines in the tmetafil.prg as described without any apparent change. Is there something else I need to do to fix this?

Thanks!

on a related question....when using the PDF button on the PREVIEW screen, is there a way to make the folder option default to the last used folder as to where to place the pdf file?
User avatar
Greg Gammon
 
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Re: rPreview ZOOM problem

Postby driessen » Thu Jan 23, 2014 12:16 pm

I just used the tmetafil.prg from FWH 13.08.

At the moment the problem is solved. Everything ok now.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: rPreview ZOOM problem

Postby Greg Gammon » Thu Jan 23, 2014 2:44 pm

Thanks...I'll download 13.08 version and hopefully that will fix me too!
User avatar
Greg Gammon
 
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Re: rPreview ZOOM problem

Postby Greg Gammon » Mon Jan 27, 2014 5:15 pm

FWH 13.12 (could not find 13.07 version of tmetafil)
Harbour current version as downloaded from FiveTech

I cannot get the ZOOM to work correctly on preview.
When preview comes up, the initial small rendering looks ok. When I select any zoom, they all force the page to stretch wide (virtually unreadable as described in previous posts) and choosing any of the zoom factors has no effect or change in the rendering.

I have also un-commented the section in tmetafil.prg as suggested and that has no effect either.

Help!

G
User avatar
Greg Gammon
 
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Re: rPreview ZOOM problem

Postby driessen » Tue Jan 28, 2014 1:03 am

Greg,

Send me an e-mail (info@juda.be) and I reply to you tmetafil.prg of FWH 13.08.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: rPreview ZOOM problem

Postby Antonio Linares » Tue Jan 28, 2014 12:01 pm

Michel,

many thanks for your help :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: rPreview ZOOM problem

Postby Greg Gammon » Tue Jan 28, 2014 3:32 pm

Michel,
Thank you very much as well! I have emailed you, but in case it doesn't come through, my email is ggammon@insitegroup.com

Thanks,
Greg
User avatar
Greg Gammon
 
Posts: 105
Joined: Fri Jun 09, 2006 3:27 pm
Location: Bryan, Texas

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests

cron