In this example I will show you how easy to create a complicated dialog for auto lisp .
We from step 5 of example 1.
Resize the dialog a bit larger then insert an ImageList righ next to boxcolumn.
Change it's caption to Example Image List.
Change the it's if you like.
Change rows property to 3.
The dialog should appear as next.
Change SlideLibraryName by browse a slide library file. Here I browse for acad.slb. The image will automatic display. The bottom line also indicate there are total 30 pages of 2x3 images.
Create a action will react when you press on image by click on DCL_Action on Object Inspector and click new.
New event handle will create. You can modify the code if you want. In this example I leave it as default.
You can play with dilaog by press Toggle Design button
from toolbar. Press next and previous button the image will be page up/down. The indicator also change.
Press generate code button
from toolbar all the code will be create.
Go into AutoCad , load gererated lisp file. From command line press loaddialog. The dialog should appear.
If you press in any button an messgebox like next will show. The value is the page number and key is the name of button are pressed
If you exprience with autolisp programming you will known that this kind of dialog took alot of time to create, but here you just need 3 minuiten no need to write any single line of code. Don't need to know any lisp routine.
How do you think?