TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Visual DCL Programming => Topic started by: dubb on February 17, 2017, 03:15:08 PM

Title: Multi Line or textbox with DCL
Post by: dubb on February 17, 2017, 03:15:08 PM
I am trying to create a textbox with DCL. I have read that DCL only supports a single line.
ObjectDCL, OpenDCL, Doslib will not work for me because I cannot install executables in my office network environment.

The goal of my next script would be to allow the user to enter multi-line text in a textbox and save it to a .txt file on the network.

Any ideas on how to achieve this?
Title: Re: Multi Line or textbox with DCL
Post by: Lee Mac on February 17, 2017, 05:20:54 PM
I've previously used a list box to display multiline text, as per this example (http://lee-mac.com/tipoftheday.html).
Title: Re: Multi Line or textbox with DCL
Post by: Grrr1337 on February 17, 2017, 05:42:18 PM
What about creating a list of strings and popultate the DCL code on the fly, by using paragraph and text_part:
http://www.afralisp.net/archive/lispa/lisp48u.htm
Title: Re: Multi Line or textbox with DCL
Post by: CAB on February 17, 2017, 11:36:08 PM
This is an old routine that works with text file stored data.
I never completed the user edit portion. It was easy to edit the stored data directly.

http://www.theswamp.org/index.php?topic=1392.0
Title: Re: Multi Line or textbox with DCL
Post by: BIGAL on February 18, 2017, 08:07:38 PM
Whilst a dcl would be nice could you not just use mtext, pull the text out after closing write to file then erase it.
Title: Re: Multi Line or textbox with DCL
Post by: dubb on February 20, 2017, 01:47:18 PM
This is an old routine that works with text file stored data.
I never completed the user edit portion. It was easy to edit the stored data directly.

http://www.theswamp.org/index.php?topic=1392.0

I like what you have done with this script, its what I'm trying to achieve.
Per other replies, I'm also going to explore those methods.