Author Topic: My 1st opendcl Multi line input  (Read 267 times)

BIG-AL

  • Member
  • *
  • Posts: 6
My 1st opendcl Multi line input
« on: December 12, 2019, 08:12:54 PM »
Not sure where to start, I have library routines that allow you make dcl's on the fly rather than having multiple dcl's with just 1 change.

The Multi getvals allows you to have as many lines of input as you need from 1 line to screen size control around 20. It driven by 2 lines of code. It just uses a list for the line by line dcl.

Code: [Select]
(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "This is heading" "Line 1" 5 4 "11" "Line2" 8 7 "22" "Line3" 8 7 "33" "Line4" 8 7 "4")))

I was looking for help as I have another Multi getval with an image so would like to use JPG I am looking for help where to start in opendcl and wether random input can be coded.

I have attached both lisps look in code for instructions, basically drag the multi getvals.lsp onto Autocad. Then paste the ans line.

« Last Edit: December 12, 2019, 08:17:09 PM by BIG-AL »

BIG-AL

  • Member
  • *
  • Posts: 6
Re: My 1st opendcl Multi line input
« Reply #1 on: December 14, 2019, 09:50:07 PM »
Is this the answer to my question "then showing, hiding, and repositioning controls at runtime."

So can pass as many lines as required, but have a open dcl with say 20 lines of input, only display as required ?

roy_043

  • Sr. Member
  • ****
  • Posts: 370
Re: My 1st opendcl Multi line input
« Reply #2 on: December 15, 2019, 01:05:48 AM »
Glad to see you have done some research. Your conclusion is correct. The only exceptions being (AFAIK) the OptionList and the Grid.
Note that OpenDCL does not support the JPG format.

BIG-AL

  • Member
  • *
  • Posts: 6
Re: My 1st opendcl Multi line input
« Reply #3 on: December 17, 2019, 09:30:14 PM »
Hi Roy

Yes had seen a grid option example which is close to what I am doing.

Its more about getting better quality image in the form. Will do some more home work.