jpsheader.jpg (29354 bytes)

Back to DCL Tutorial Homepage

Back to AutoLisp Homepage

Back to JefferyPSanders.com

 

 

R

O

W

S

 

 

A

N

D

 

C

O

L

U

M

N

S

 

 

 

 

 

 

R

O

W

S

 

 

 

A

N

D

 

 

C

O

L

U

M

N

S

 

 

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;
  }
}

DCL_RC01.JPG (6806 bytes)

Column
   Column
   Column

EXAMPLE : dialog {
  label = "EXAMPLE.lsp";
  : column {
    : boxed_row {  
      label = "row 1";  
      : boxed_column {
        label = "column2";
      }
      : boxed_column {
        label = "column 3";
      }
    }
    ok_cancel;
  }
}

DCL_RC02.JPG (6233 bytes)

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;
  }
}

DCL_RC03.JPG (8910 bytes)

Column
   Column
   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;
  }
}

DCL_RC04.JPG (7872 bytes)

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;
  }
}
DCL_RC05.JPG (9096 bytes)

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;
  }
}

DCL_RC06.JPG (10349 bytes)

Column
   Row
   Row

   I hope this puts an end to the rows and columns issue.

Back


AutoLisp DCL Tutorial Home

AutoLisp Home

Home

All questions/complaints/suggestions should be sent to JefferyPSanders.com

Last Updated May 22nd, 2013

Copyright 2002-2013 JefferyPSanders.com. All rights reserved.