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:
|
Column |
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 |
EXAMPLE : dialog { |
Column |
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 |
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 |
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 |
I hope this puts an end to the rows and columns issue. If not, you know where to find me.