| กก |
There is an
example Visual LISP file packaged in VLDCL to show details in programming with VLDCL tiles. Here you can see the dialog interface same as calling the sample codes within AutoCAD.
VLDCL slider
In source codes, we control a Horizontal aligned DCL slider to get value from 1 to 100, also we combined a text_part tile to display the current value on slider action.
- VLDCL radio/toggle/edit_box
In this part, we defined three edit_box tiles to enter REAL, INTEGER and normal STRING. Together with the edit_box, we combined a toggle tile and a button tile with it. The toggle tile controls the enable/disable switch, the button will be used to call VLDCL native vldcl-getxxx function.
- VLDCL list
VLDCL support multiple selected list. In this example, we use LAYER and text STYLE as list content.
- VLDCL combocolor
The example codes use a text_part and an image_button to show how VLDCL combocolor feature works! In AutoCAD 2004+, VLDCL combocolor support true color automatically. The dialog picture just shows an AutoCAD true color is selected.
New feature of VLDCL-IMAGE-FILL-TEXT is also be added into the sample dialog. A "VLDCL-IMAGE-FILL-TEXT" string with magenta color will be displayed in an Image button.
VLDCL button
The [Sub Dialog...] button will appear a sub-dialog, within the sub-dialog, an image_button is used to demonstrate how VLDCL progressbar works and another "ENTER PASSWORD" feature of VLDCL can also be called from this dialog.
|
| กก |
All source codes can be found in VLDCL package. If you have problem or misunderstanding on trying this example running on your local AutoCAD, email
kozmosovia@hotmail.com to report KozMos and we will provide you the solution.
There is another sample to demonstrate the usage of VirtualButton. As
this is very easy to understand and use, please directly to the source
VisualLISP file HERE and make a
trial. (All two files can be found in Samples folder)
|