AutoCAD

Associating Lists and Dialog Box List Boxes

1 Nov, 1999 By: Bill Kramer


One of the more frequently asked questions by AutoLISP programmers who are learning about dialog boxes is how to associate a dialog list box with an AutoLISP data list. I've been told that when you first look at the documentation it is not exactly clear if they are associated or not. The quick answer is that they are not associated, except by your program. Your program controls the content of lists displayed, what is displayed in the lists, what happens when a list box is selected in a dialog box and what happens when a value is changed.

Novice programmers and experienced Windows developers can find themselves confused because in both cases, they expect a more automatic approach. Other languages that are used to program dialog boxes have list box controls that store and retrieve the data displayed, allowing the programmer to use the object as a mechanism to store data in a running program. AutoLISP uses a more basic approach, and sometimes this in itself can be a source of confusion. This month, we will look at list boxes in more detail. We will start by looking at list boxes on a general level and then discuss how to work with them in a program.

List Boxes
There are two basic types of list boxes in AutoLISP


About the Author: Bill Kramer


AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Latest News from Cadalyst Partners
Feed
Place your DWG File on a Diet   18 Jun, 2013

I received an email from blog reader Steve Roberts with a suggested tip topic on how to reduce the size and clean up DWG drawing files using four...More>>Read all Between the Lines blog posts>>

Feed
Tech Toys 360: Pro-Form Le Tour de France Bike   18 Jun, 2013

The greatest bike race in the world is held June 19 to July 21 this year. Celebrating its 100th year, the Tour de France sends riders through more...More>>Read more PTC Creo blog posts>>

Feed
Update 3 now available for Revit 2013 Products - Revit Clinic   18 Jun, 2013

...More>>Read more BIMbuilder blog posts>>

Feed
Nice Design—What Does It Feel Like?   17 Jun, 2013

...More>>Read more SolidWorks Blog posts>>

Feed
LiveMap: The Augmented Reality Motorcycle Helmet of the Future?   18 Jun, 2013

Philippe Starck once famously said that there should be no cars on the road—-only motorcycles. While some soccer moms may disagree, his theory...More>>Read more SolidSmack blog posts>>

Poll
How many years' experience do you have using CAD software?
Less than two years
2–5 years
6–10 years
11–20 years
21+ years
Submit Vote




FREE Resources for CAD, BIM, and PLM Users





Subscribe Cadalyst Newsletters