OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on August 25, 2014, 09:47:12 AM

Title: Width of the TextBox
Post by: velasquez on August 25, 2014, 09:47:12 AM
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.
Title: Re: Width of the TextBox
Post by: owenwengerd on August 25, 2014, 10:30:16 AM
There are Windows API functions for this, but nothing exposed via OpenDCL that I can think of.
Title: Re: Width of the TextBox
Post by: honkinberry on November 29, 2014, 06:45:40 PM
With the current text style set to Arial Narrow, and TEXTSIZE set to 10, the results of (textbox '((1 . "Sample")) work very well.

--J
Title: Re: Width of the TextBox
Post by: Fred Tomke on December 01, 2014, 10:52:15 PM
Hi, honkinberry, that's great! I haven't known this yet. Great!
Regards, Fred