Determining column position printer

Determining column position printer

Postby Frank Demont » Wed Jul 05, 2006 7:39 am

Hello

In Clipper we can :

? "Test"
?? "Continue after test"

Now we have
oPrn:say(nrow,ncol,"test")
oPrn:say(nrow, ???? , "Continue after test")
How we know the column position ?

With courier new i have no problems , but with other fonts it seems that we have to know the width from each character.

Is it possible ?

Frank
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby StefanHaupt » Wed Jul 05, 2006 8:24 am

Frank,

you can use GetTextWidth() to get the length of a string.

Maybe it´s better to use oPrn:cmSay() instead of oPrn:Say(). So you can easier control the printposition

Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests