Paper simulation

Paper simulation

Postby Silvio » Tue Apr 22, 2008 8:03 am

How I can simulate a paper A4 (210*297) into a window ?

Wich is the best class I can simulate a paper ?

How i must show it Knowing the coordinates of window are in pixel instead of centimeter coordinates of paper?
Dear Antonio, last year sad me to se the rpreview class ...
I try with metafile class but it ask me an odevice
How i can resolve tis problem?

Thanks to all sad me an idea for it
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » Tue Apr 22, 2008 5:48 pm

Silvio,

You can create a new control or use a standard FWH window.

The key is in how you manage its device context. Please review source\classes\printer.prg Method CmSay() and you will see how to convert from centimeters to pixels.
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 Silvio » Tue Apr 22, 2008 10:12 pm

dear Antonio ,
Itrying to create something
Also i thinked about to use a type of window control but it is no easy!
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: anserkk, nageswaragunupudi, RAMESHBABU and 43 guests