Width of the TextBox

Started by velasquez · 2014-08-25 16:47 UTC · 3 replies · SMF topic #2163

I have a TextBox with font = MS Shell Dlg and size = 10.
Knowing the text it is possible to calculate the width of the TextBox before displaying?

Thanks.
There are Windows API functions for this, but nothing exposed via OpenDCL that I can think of.
With the current text style set to Arial Narrow, and TEXTSIZE set to 10, the results of (textbox '((1 . "Sample")) work very well.

--J
Hi, honkinberry, that's great! I haven't known this yet. Great!
Regards, Fred