Started by velasquez ·
2014-08-25 16:47 UTC ·
3 replies · SMF topic #2163
velasquez
2014-08-25 16:47 UTC
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.
owenwengerd
2014-08-25 17:30 UTC
There are Windows API functions for this, but nothing exposed via OpenDCL that I can think of.
honkinberry
2014-11-30 02:45 UTC
With the current text style set to Arial Narrow, and TEXTSIZE set to 10, the results of (textbox '((1 . "Sample")) work very well.
--J
fred_tomke
2014-12-02 06:52 UTC
Hi, honkinberry, that's great! I haven't known this yet. Great!
Regards, Fred