Skip to main content
1-Visitor
November 5, 2015
Solved

Scripting list box

  • November 5, 2015
  • 2 replies
  • 2149 views

Hi

I'm trying to use list boxes in a document, but I'm not able to find any proper guides to scripting. What I'd like to do is controlling the list items from the output of another list box. A given item is only to appear (or is greyed out) unless certain items are choosen in the other list box.

Thanks in advance.

Ole

Best answer by MJG

Try this:

Help -> Developer's Reference -> Mathsoft Controls

Scroll to the bottom of this help page and click "Mathcad Example"

Scroll down to:

Click on the "Mathsoft Controls" link.

Scroll down to "Mathsoft List Box."  It has an example of what you've requested (one list box dependent on the other).

2 replies

MJG1-VisitorAnswer
1-Visitor
November 5, 2015

Try this:

Help -> Developer's Reference -> Mathsoft Controls

Scroll to the bottom of this help page and click "Mathcad Example"

Scroll down to:

Click on the "Mathsoft Controls" link.

Scroll down to "Mathsoft List Box."  It has an example of what you've requested (one list box dependent on the other).

25-Diamond I
November 5, 2015

You may also be interested in Richard's fine collection:

Extra Components and Controls - PTC Community

19-Tanzanite
November 5, 2015
You may also be interested in Richard's fine collection:

Extra Components and Controls - PTC Community

that includes a scripted list box that will do exactly what is requested, because it can be populated from an input. No extra programming required