How Can i Draw a box 290mm x 210mm in a dialog

How Can i Draw a box 290mm x 210mm in a dialog

Postby devwin2004 » Thu Mar 09, 2006 1: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
devwin2004
 
Posts: 42
Joined: Mon Dec 05, 2005 1:27 am

Postby Antonio Linares » Fri Mar 10, 2006 7:23 am

Dante,

In class TPrinter you have this method:
Code: Select all  Expand view  RUN
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests