Dialog Box streamlining?

Discussion in 'AutoCAD' started by Fatfreek, Sep 18, 2004.

  1. Fatfreek

    Fatfreek Guest

    This is one of my first attempts at using dialog boxes. If you load it
    you'll see that there is so much space between the labels and the fields.
    How can I fix that?

    Len Miller

    TribInputs : dialog
    {
    label = "SculptureText Inputs";

    : edit_box {
    label = "Text File Pathname:";
    key = "Filepath";
    edit_width = 70;
    edit_limit = 250;
    allow_accept = true;
    }

    : row {
    : edit_box {
    label = "Text File Prefix:";
    key = "FilePrefix_GL";
    edit_width = 25;
    edit_limit = 250;
    allow_accept = true;
    }

    : edit_box {
    label = "Text File Extension:";
    key = "FileExt_GL";
    edit_width = 15;
    edit_limit = 50;
    allow_accept = true;
    }}

    : row {
    : edit_box {
    label = "Lettering Height:";
    key = "TextHt_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    }
    : edit_box {
    label = "Lettering Width Factor:";
    key = "TextWd_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    }
    }

    : row {
    : edit_box {
    label = "Lettering Min Squeeze Factor:";
    key = "TextMinFactor_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    }
    : edit_box {
    label = "Squeeze or Extend Override:";
    key = "OverrideDelta_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    }
    }

    : row {
    : edit_box {
    label = "Space Between Records:";
    key = "PadTween_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    }
    : edit_box {
    label = "Vertical Lettering Ht Factor:";
    key = "TextLineHtFactor_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    }
    }

    : row {
    : edit_box {
    label = "Lettering Slant:";
    key = "TextSlant_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    }
    : edit_box {
    label = "List Limit:";
    key = "ListLimit_GL";
    edit_width = 5;
    edit_limit = 5;
    allow_accept = true;
    }
    }

    : row {
    : edit_box {
    label = "Font Name:";
    key = "StyleName_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    }
    : edit_box {
    label = "Font Extension:";
    key = "StyleExt_GL";
    edit_width = 4;
    edit_limit = 4;
    allow_accept = true;
    }
    }

    : boxed_radio_row {
    label = "Estimate or Quit";
    : radio_button {
    label = "Estimate ";
    key = "su_man";
    }
    : radio_button {
    label = "Quit";
    key = "su_auto";
    }
    }
    ok_cancel;
    }
     
    Fatfreek, Sep 18, 2004
    #1
  2. Fatfreek

    BillZ Guest

    Fatfreek,
    This has always been a problem with DCL.

    This is about as good as I can get it with the current arrangement:

    TribInputs : dialog
    {
    label = "SculptureText Inputs";

    : edit_box {
    label = "Text File Pathname:";
    key = "Filepath";
    edit_width = 70;
    edit_limit = 250;
    allow_accept = true;
    fixed_width = true ;
    }

    : row {
    : edit_box {
    label = "Text File Prefix:";
    key = "FilePrefix_GL";
    edit_width = 25;
    edit_limit = 250;
    allow_accept = true;
    fixed_width = true ;
    }

    :spacer_0 {}

    : edit_box {
    label = "Text File Extension:";
    key = "FileExt_GL";
    edit_width = 15;
    edit_limit = 50;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : row {
    : edit_box {
    label = "Lettering Height:";
    key = "TextHt_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    fixed_width = true ;
    }
    :spacer_0 {}
    : edit_box {
    label = "Lettering Width Factor:";
    key = "TextWd_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : row {
    : edit_box {
    label = "Lettering Min Squeeze Factor:";
    key = "TextMinFactor_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    fixed_width = true ;
    }
    :spacer_0 {}
    : edit_box {
    label = "Squeeze or Extend Override:";
    key = "OverrideDelta_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : row {
    : edit_box {
    label = "Space Between Records:";
    key = "PadTween_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    fixed_width = true ;
    }
    :spacer_0 {}
    : edit_box {
    label = "Vertical Lettering Ht Factor:";
    key = "TextLineHtFactor_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : row {
    : edit_box {
    label = "Lettering Slant:";
    key = "TextSlant_GL";
    edit_width = 6;
    edit_limit = 6;
    allow_accept = true;
    fixed_width = true ;
    }
    :spacer_0 {}
    : edit_box {
    label = "List Limit:";
    key = "ListLimit_GL";
    edit_width = 5;
    edit_limit = 5;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : row {
    : edit_box {
    label = "Font Name:";
    key = "StyleName_GL";
    edit_width = 10;
    edit_limit = 10;
    allow_accept = true;
    fixed_width = true ;
    }
    :spacer_0 {}
    : edit_box {
    label = "Font Extension:";
    key = "StyleExt_GL";
    edit_width = 4;
    edit_limit = 4;
    allow_accept = true;
    fixed_width = true ;
    }
    }

    : boxed_radio_row {
    label = "Estimate or Quit";
    fixed_width = true ;
    : radio_button {
    label = "Estimate ";
    key = "su_man";
    }
    : radio_button {
    label = "Quit";
    key = "su_auto";
    }
    }
    ok_cancel;
    }


    You may be able to re-arrange the tiles to look better.
    More of an art than a science.



    Bill
     
    BillZ, Sep 20, 2004
    #2
  3. Fatfreek

    Fatfreek Guest

    Bill,

    That looks mighty good to me. Thanks very much.

    Len
     
    Fatfreek, Sep 20, 2004
    #3
  4. Fatfreek

    BillZ Guest

    You're welcome.



    Bill
     
    BillZ, Sep 20, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.