OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: kentagordon on February 02, 2012, 03:21:03 PM

Title: Displaying 'TextSize' Variable in a Text Box
Post by: kentagordon on February 02, 2012, 03:21:03 PM
Hello. I'm pretty new to OpenDCL but am trying gamely to build a program which (among other things) will place area labels on enclosed polylines. I've cobbled together the code that can perform this much, but I'd like to exert some control over the text size used. I have a text box for this purpose, and am using the 'EditChanged' event to trigger a text size change. What I'd like to do is display the current text size as the default value in the text box, so that the label will be written with the new text size (if changed) otherwise in the default text size shown in the box. Is it possible to display this value (AutoCAD "TextSize") in a ODCL text box? If so, how? Thanks in advance.
Title: Re: Displaying 'TextSize' Variable in a Text Box
Post by: Fred Tomke on February 03, 2012, 03:39:54 AM
Hi,

just use the OnInitialize event and read the TEXTSIZE systemvariable and put it into the textbox.

Regards, Fred
Title: Re: Displaying 'TextSize' Variable in a Text Box
Post by: kentagordon on February 03, 2012, 02:17:44 PM
Thanks, Fred! It was far easier than I thought!