[画像:jpsheader.jpg (29354 bytes)]
D
I
A
L
O
G
C
O
N
T
R
O
L
L
A
N
G
U
A
G
E
The AutoLisp Tutorial
Dialog Control Language - Controls
Let's take a look at the different controls you can put on the dialog box. You've seen a few of them in the overview portion but let's go over the majority of them now. I will only show the most used properties for each control.
LAYOUT CONTROLS:
Column
You can omit the label.
Boxed Column
You can omit the label.
Row
You can omit the label.
Boxed Row
You can omit the label.
A normal spacer to help align other controls. You can omit the width and height properties.
A spacer that usually has no width. It simply means, if you have to stretch something in this row to make things fit, stretch this spacer instead of the other items..
BUTTON
: button {
key = "button1;
label = "Okay";
is_tab_stop = true;
is_cancel = false;
is_default = true;
width = 15;
height = 10;
mnemonic = "B";
}
key = The name you assign to the button.
label = The text displayed on the button.
is_cancel = Determines if this is the cancel button. One control must be assigned to be the cancel action.
is_default = Determines if this button activates when the user presses the enter key.
mnemonic = Determines if you can press ALT+B to move to this action key. You
assign the letter and DCL will underscore the letter on the dialog box to let the user
know it is ALT-able. If that is a word!
DCL_OKAY.JPG (2034 bytes)
BOXED RADIO COLUMN, RADIO COLUMN, & RADIO BUTTON
BOXED RADIO ROW, RADIO ROW, & RADIO BUTTON
EDIT BOX
DCL_EDIT.JPG (1665 bytes)
LIST BOX
// Label for the list box
// Action key
// Height of list box
// Width of list box
// Multiple Select = TRUE
// Use fixed with font = TRUE
// Initial selection = 1st item
[画像:DCL_LIST01.JPG (6604 bytes)]
Fixed Width Font = TRUE
Multiple Select = TRUE
View of list box with...
[画像:DCL_LIST02.JPG (5754 bytes)]
Fixed Width Font = FALSE.
Multiple Select = TRUE.
View of list box with...
[画像:DCL_LIST03.JPG (5255 bytes)]
Fixed Width Font = FALSE.
Multiple Select = FALSE.
POPUP LIST
// Action key
// Label
// Use fixed with font = false
// Width of list box
// Initial selection = 1st item
DCL_POP01.JPG (2163 bytes)
TEXT
DCL_TEXT01.JPG (1234 bytes)
Okay. That's it for controls. There are others but, these are the most used controls. Let's move on.
All questions/complaints/suggestions should be sent to /
Last Updated April 1st, 2013
Copyright 2002-2013 /. All rights reserved.