fwh 7.10 preview at startup

fwh 7.10 preview at startup

Postby Richard Chidiak » Mon Oct 29, 2007 1: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Fri Nov 02, 2007 10:31 am

Richard,

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

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

Postby Richard Chidiak » Fri Nov 02, 2007 4: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Fri Nov 02, 2007 5: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:
Code: Select all  Expand view  RUN
function RPreview( oDevice )

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

   oPreview:Zoom()
   oPreview:Activate()

return nil
regards, saludos

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

Postby Richard Chidiak » Sat Nov 03, 2007 5: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: FAST WebCrawler [Crawler], Google [Bot] and 54 guests