Sie sind auf Seite 1von 6

Atributos DCL

DCL Tile Attributes


by Kenny Ramage
This tutorial will give you a detailed explanation of all attributes used in the design and implementation of
dialogue boxes used within AutoCAD/AutoLisp.
I have provided a sample dialogue image of each of the various aspects of attributes, and the sample
DCL Coding that was used to create the dialogue. The sample AutoLisp coding required to display each
dialogue can be found in the downloadable tutorial.
Attributes in DCL define the layout and functionality of tiles. If you are familiar with Visual Basic, you will
find that they are very similar to properties. DCL Attributes consist of a name and a value.

Attribute Values
Note: The value of certain attributes can change at run-time, with user input or "set_tile" calls. The value
of a tile's attribute must be one of the following type :
Integer: Numeric Values (integer or real number) that represent distances such as width, or height of a
tile.
Real Number: A fractional real number must have a leading digit. e.g. "0.1" not ".1".
Quoted String: A quoted string consists of text enclosed in quotation marks ("text"). Attribute values are
case sensitive. "RB1" is not the same as "rb1".
Reserved Word: A reserved word is an identifier made up of alphanumeric characters, beginning with a
letter. e.g. true or false. Reserved words are case sensitive: "True" does not equal "true".

Attributes Listing

Global Attributes
Attribute :
alignment
fixed_height
fixed_width
height
width
Applies to :
All Tiles

Attributes Associated with Action Tiles


Attribute :
action
is_enabled
is_tab_stop
key
mnemonic
Applies to :
button;

edit_box;

image_button;

list_box;

popup_list;

radio_button;

slider;

toggle;
radio_column;

radio_row

Attributes Associated with Tile Clusters


Attribute :
children_alignment
children_fixed_height
children_fixed_width
Applies to :
row;

column;

radio_row;
radio_column;

boxed_row;

boxed_column;

boxed_radio_row;
boxed_radio_column

Attributes Associated with Specific Tiles


Attribute :
allow_accept
Applies to :
edit_box; image_button; list_box

Attribute :
aspect_ration
Applies to :
image;

image_button

Attribute :
big_increment
Applies to :
slider

Attribute :
color
Applies to :
image;

image_button

Attribute :
edit_limit
Applies to :
edit_box

Attribute :
edit_width
Applies to :
edit_box;
popup_list

Attribute :
fixed_width_font
Applies to :
edit_box; popup_list

Attribute :
initial_focus
Applies to :
dialog

Attribute :
is_cancel
Applies to :
button

Attribute :
is_default
Applies to :
button

Attribute :
label
Applies to :
boxed_row;

boxed_column;

boxed_radio_row;

boxed_radio_column;

button;

dialog;

edit_box;
list_box;
popup_list;

radio_button;

text;

toggle

Attribute :
layout
Applies to :
slider

Attribute :
list
Applies to :
list_box;

popup_list

Attribute :
max_value
Applies to :
slider

Attribute :
min_value
Applies to :
slider

Attribute :
multiple_select
Applies to :
list_box

Attribute :
password_char
Applies to :
edit_box

Attribute :
small_increment
Applies to :
slider
Attribute :
tabs
Applies to :
list_box;

popup_list

Attribute :
tab_truncate
Applies to :
list_box; popup_list

Attribute :
value
Applies to :
text;

all active tiles (except buttons and image_buttons)

Das könnte Ihnen auch gefallen