FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How Can i Draw a box 290mm x 210mm in a dialog
Posts: 42
Joined: Mon Dec 05, 2005 01:27 AM
How Can i Draw a box 290mm x 210mm in a dialog
Posted: Thu Mar 09, 2006 01:12 AM

Dear Coleagues

How Can i Draw a box 290mm x 210mm (exact dimension)
inside a dialog on screen

Thanks

Dante

devwin2004@yahoo.com.ar

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
How Can i Draw a box 290mm x 210mm in a dialog
Posted: Fri Mar 10, 2006 07:23 AM
Dante,

In class TPrinter you have this method:
METHOD Cmtr2Pix( nRow, nCol ) CLASS TPrinter

   if ValType( ::nYoffset ) == "U"
    ::nYoffset := 0
   endif
   if ValType( ::nXOffset ) == "U"
    ::nXoffset := 0
   endif

   nRow := Max( 0, ( nRow * 10 * ::nVertRes() / ::nVertSize() ) - ::nYoffset )
   nCol := Max( 0, ( nCol * 10 * ::nHorzRes() / ::nHorzSize() ) - ::nXoffset )

return { nRow, nCol }

you may use its code to turn the mm into pixels.
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion