FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour fwh 7.10 preview at startup
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
fwh 7.10 preview at startup
Posted: Mon Oct 29, 2007 01:43 PM

Hello

I need to initiate my preview window with zoom on

If i set on init ::zoom(.t.) and lzoom := .t. before, the result is badly painted.

Has anyone succeeded doing this ?

Thanks for help

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
fwh 7.10 preview at startup
Posted: Fri Nov 02, 2007 10:31 AM

Richard,

Where do you call ::zoom(.t.) from ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
fwh 7.10 preview at startup
Posted: Fri Nov 02, 2007 04:43 PM

Antonio

tried several locations,

On init the result is bad,

tried lzoom := .t. same bad painting

Any idea where i should call it from ?

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
fwh 7.10 preview at startup
Posted: Fri Nov 02, 2007 05:32 PM
Richard,

If you do a:

PRINT oPrn PREVIEW
...
ENDPRINT

then you have no way to access to oPreview object. And you need to send it the :Zoom() msg. Unless I am missing something.

You could easily modify source/classes/rpreview.prg and do it here:
function RPreview( oDevice )

   local oPreview := TPreview():New( oDevice )

   oPreview:Zoom()
   oPreview:Activate()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
fwh 7.10 preview at startup
Posted: Sat Nov 03, 2007 05:32 AM

Antonio

I had done this also and the result is not good.

I think an image shows better the problem

I have uploaded two images

www.cbati.com/ZOOMNORMAL.jpg this image is obtained when zooming (not at init)

www.cbati.com/ZOOMONINIT.jpg this image is obtained when zooming at startup

Thanks for your help,

Richard

See the difference in paiting

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013

Continue the discussion