The
AutoLisp Tutorial - DCL
Dialog Control Language -
Rows and Columns
Rows and Columns
Let's get a feel for laying out a dialog box using nested rows and
columns. I'll do this by showing you the DCL code next to a picture of the dialog
box. I can't think of any easier way to do it. Ignore all of the
Labels and TEXT controls. I will use these to visually show the location of things.
| Example 1:
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_column {
label = "column 1";
: boxed_column {
label = "column2";
}
: boxed_column {
label = "column 3";
}
}
ok_cancel;
}
}
|

Column
Column
Column<\p> |
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_row {
label = "row 1";
: boxed_column {
label = "column2";
}
: boxed_column {
label = "column 3";
}
}
ok_cancel;
}
} |

Notice I changed the first boxed column into a boxed row.
Row
Column
Column |
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_column {
label = "column 1";
: boxed_column {
label = "column2";
: text {
key = "t1";
value = "Text1";
}
: text {
key = "t2";
value = "Text2";
}
}
: boxed_column {
label = "column
3"; : text {
key = "t3";
value = "Text3";
}
: text {
key = "t4";
value = "Text4";
}
}
}
ok_cancel;
}
} |

Column
Column
Column<\p> |
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_row {
label = "row 1";
: boxed_column {
label = "column2";
: text {
key = "t1";
value = "Text1";
}
: text {
key = "t2";
value = "Text2";
}
}
: boxed_column {
label = "column
3"; : text {
key = "t3";
value = "Text3";
}
: text {
key = "t4";
value = "Text4";
}
}
}
ok_cancel;
}
} |

Row
Column
Column |
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_row {
label = "row 1";
: boxed_row {
label = "row 2";
: text {
key = "t1";
value = "Text1";
}
: text {
key = "t2";
value = "Text2";
}
}
: boxed_row {
label = "row 3";
: text {
key = "t3";
value = "Text3";
}
: text {
key = "t4";
value = "Text4";
}
}
}
ok_cancel;
}
} |
 Row
Row
Row |
EXAMPLE : dialog {
label = "EXAMPLE.lsp";
: column {
: boxed_column {
label = "row 1";
: boxed_row {
label = "row 2";
: text {
key = "t1";
value = "Text1";
}
: text {
key = "t2";
value = "Text2";
}
}
: boxed_row {
label = "row 3";
: text {
key = "t3";
value = "Text3";
}
: text {
key = "t4";
value = "Text4";
}
}
}
ok_cancel;
}
} |

Column
Row
Row |
I hope this puts an end to the rows and columns issue. If not, you
know where to find me.
Back
AutoLisp Tutorial Home
AutoLisp Home
Home
All questions/complaints/suggestions should be sent to JefferyPSanders.com
Last Updated September 28th, 2008
Copyright 2002-2008 JefferyPSanders.com. All rights reserved. |