OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Peter2 on October 25, 2016, 03:51:29 AM

Title: Linefeed in textfields?
Post by: Peter2 on October 25, 2016, 03:51:29 AM
How to get a linefeed in read-Only "Textfields"?

The english help tells me only
Code (autolisp) Select
(dcl-Control-SetText <CONTROL> strNewValue [als String])

the German help adds the information that "\r\n" creates a linefeed in multiline(?) texts.

But I only get a single line ...
Title: Re: Linefeed in textfields?
Post by: Peter2 on October 26, 2016, 12:28:27 AM
I found the information here:

http://www.opendcl.com/forum/index.php?topic=1742.msg8568#msg8568

It would be great if this information would be added to the help-file.

Peter
Title: Re: Linefeed in textfields?
Post by: Fred Tomke on October 28, 2016, 03:38:00 AM
Hello, Peter,
I had a check troughout the product help. I'm sure I've missed something you've mentioned because I've already found the hint of \r\n as well in the Studio as in the help file in the label control and in the textbox control.
Regards, Fred
Title: Re: Linefeed in textfields?
Post by: Peter2 on October 28, 2016, 11:14:36 AM
For text-control the German help only describes "\r\n", English help does not.

I'm missing the additional information
Quoteyou have to set textbox to multiline style, activate vertical scrollbars and auto-v-scroll and deactivate horizontal scrollbars and auto-h-scroll.
Title: Re: Linefeed in textfields?
Post by: Fred Tomke on October 28, 2016, 04:06:25 PM
Yes, you are right: I was selfish enough just to check my translations. Sorry.
Regards, Fred