FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TFont:nOrientation
Posts: 7
Joined: Wed Apr 07, 2010 10:14 AM
TFont:nOrientation
Posted: Tue Aug 22, 2017 10:36 PM
Hello everyone,

In printing, the text rotation is not changing:
Code (fw): Select all Collapse
   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.
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: TFont:nOrientation
Posted: Wed Aug 23, 2017 07:25 AM
Eric.Developer wrote:
Code (fw): Select all Collapse
   nAngle:=90
   oFont1:= TFont():New('Courier New',,150,.F.,,,nAngle)


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


Please note: nAngle is the sixth parameter.

EMG
Posts: 7
Joined: Wed Apr 07, 2010 10:14 AM
Re: TFont:nOrientation
Posted: Wed Aug 23, 2017 08:53 AM
Now it works, thank you Enrico.

note: The names of some properties and parameters are changed:
Code (fw): Select all Collapse
METHOD New( 1-cFaceName, 2-nWidth, 3-nHeight, 4-lFromUser, 5-lBold, 6-nEscapement, 7-nOrientation, ...)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: TFont:nOrientation
Posted: Wed Aug 23, 2017 09:01 AM

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

EMG

Continue the discussion