Linefeed in textfields?

Started by Peter2, October 25, 2016, 03:51:29 AM

Previous topic - Next topic

Peter2

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 ...
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Peter2

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
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Peter2

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.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Fred Tomke

Yes, you are right: I was selfish enough just to check my translations. Sorry.
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]