Page 1 of 1

Determine lengt in Pixel of cVar

Posted: Wed Jan 29, 2025 8:24 am
by Marc Venken
For making BmpBtn of the size of the text (cVar) in need to know how long the cVar = in pixels

Can't find the code in the current forumData. Anyone has it ?

Re: Determine lengt in Pixel of cVar

Posted: Wed Jan 29, 2025 9:49 am
by nageswaragunupudi

Code: Select all | Expand

? oBtn:GetWidth( cText, [oFont] )
 ? oDlg:GetWidth( cText, [oFont] )