implement CmLine TPrinter

Post Reply
User avatar
ronaldo
Posts: 137
Joined: Fri Nov 25, 2005 4:38 pm
Location: brasil
Contact:

implement CmLine TPrinter

Post by ronaldo »

I would like to implement the method cmline in TPrinter but want to do it in another prg

I did so, but gives error


winfunc.prg

CLASS TPrinter FROM TPrinter

METHOD CmLine( nTop, nLeft, nBottom, nRight, oPen ) INLINE
::Cmtr2Pix(@nTop, @nLeft), ::Cmtr2Pix(@nBottom, @nRight),;
MoveTo( ::hDCOut, nLeft, nTop ),;
LineTo( ::hDCOut, nRight, nBottom,;
If( oPen != nil, oPen:hPen, 0 ) )

ENDCLASS
Ronaldo Minacapelli
Sistemas, Hospedagem e Criação de WebSites
http://www.bazevani.com.br
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Re: implement CmLine TPrinter

Post by Kleyber »

Kleyber Derick

FWH / xHb / xDevStudio / SQLLIB
Post Reply