Textsize
Posted: Mon Mar 04, 2013 1:17 am
Hello,
I need to postion says in front of gets. I only have the position of the get when creating it and must put a label on the left side. So I have to calculate the length of the text and subtract from the position of the get. How is the best way in in eXpress++ ?
regards
Rudolf
I need to postion says in front of gets. I only have the position of the get when creating it and must put a label on the left side. So I have to calculate the length of the text and subtract from the position of the get. How is the best way in in eXpress++ ?
regards
Rudolf
Code: Select all
cLabel := "Textfield"
@ 100,300 dcget cText getsize GETSIZE 80,15 PIXEL
nLen := textlen(cLabel) // ??? needed
@ 100,300-nLen-10 dcsay cLabel saysize 0
...
dcread gui ...