TFont:nOrientation

TFont:nOrientation

Postby Eric.Developer » Tue Aug 22, 2017 10:36 pm

Hello everyone,

In printing, the text rotation is not changing:
Code: Select all  Expand view
  nAngle:=90
   oFont1:= TFont():New('Courier New',,150,.F.,,,nAngle)
   oFont2:= TFont():New('Courier New',,150,.F.,,,nAngle)
   
   msginfo(oFont1:nOrientation) // SHOW 90
   
   PRINTER oPrinter FROM USER PREVIEW NAME "teste"
   
   oPrinter:setFont(oFont1)

   oPrinter:StartPage()
   oPrinter:Say( 150, 40, 'teste1', oFont1)  
   oPrinter:Say( 300, 40, 'teste2', oFont2)
   oPrinter:Say( 450, 40, 'teste3', oFont2, 1550 )
 

Tested Win XP, Win7/64, Win10/64

how to solve? Thanks.
Eric.Developer
 
Posts: 7
Joined: Wed Apr 07, 2010 10:14 am

Re: TFont:nOrientation

Postby Enrico Maria Giordano » Wed Aug 23, 2017 7:25 am

Eric.Developer wrote:
Code: Select all  Expand view
  nAngle:=90
   oFont1:= TFont():New('Courier New',,150,.F.,,,nAngle)


Code: Select all  Expand view
  nAngle:=900
   oFont1:= TFont():New('Courier New',,150,.F.,,nAngle)


Please note: nAngle is the sixth parameter.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8307
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TFont:nOrientation

Postby Eric.Developer » Wed Aug 23, 2017 8:53 am

Now it works, thank you Enrico.

note: The names of some properties and parameters are changed:
Code: Select all  Expand view
METHOD New( 1-cFaceName, 2-nWidth, 3-nHeight, 4-lFromUser, 5-lBold, 6-nEscapement, 7-nOrientation, ...) 
Eric.Developer
 
Posts: 7
Joined: Wed Apr 07, 2010 10:14 am

Re: TFont:nOrientation

Postby Enrico Maria Giordano » Wed Aug 23, 2017 9:01 am

I can't see any change in parameters names, sorry.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8307
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 9 guests