There is a TSAY control :
The text is pressed to the left. In this case, I can easily determine the starting position of any character.
For example, the 6th -"t"
However, if the text in TSAY is centered,
then the position of the symbol cannot be calculated in this way.
How can this be done ?
@ 20,20 SAY oCl PROMPT "Some text" PIXEL OF oDLG SIZE 100, 20 FONT oFontFor example, the 6th -"t"
GetTextWidth(NIL, left(oCl:GetText(),5), oFont:hFont)+1@ 20,20 SAY oCl PROMPT "Some text" PIXEL OF oDLG SIZE 100, 20 FONT oFont CENTERHow can this be done ?