Author Topic: Interesting DCL Problem...  (Read 4426 times)

0 Members and 1 Guest are viewing this topic.

Columbia

  • Guest
Interesting DCL Problem...
« on: November 10, 2003, 04:37:11 PM »
I've got an interesting DCL problem that I'm hoping one of the experts in the lost art of DCL can show me where I wandered off the beaten path.

I'm using VLIDE in 2004 to preview the following DCL code:
Code: [Select]

//--------------------------------------------------------------
// BACK button
//--------------------------------------------------------------

back_button : button { label = "<- Back"; key = "back"; }

//--------------------------------------------------------------
// BACK button
//--------------------------------------------------------------

next_button : retirement_button { label = "Next ->"; key = "next"; }

//--------------------------------------------------------------
// BACK-NEXT-CANCEL-HELP cluster
//--------------------------------------------------------------

back_next_cancel_help : column {
  : row { fixed_width = true; alignment = centered;
    back_button;
    : spacer {width = 2;}
    next_button;
    : spacer {width = 10;}
    cancel_button;
    : spacer {width = 2;}
    help_button;
  }
}

//--------------------------------------------------------------
// WIZARD image tile
//--------------------------------------------------------------

wizard_image : image {
  key = "wizard_pic";
  fixed_width = true;
  fixed_height = true;
  alignment = top;
  width = 30;
  aspect_ratio = 1.0;
  color = 0;
}

wizard1 : dialog {
  label = "Project Creation Wizard";
  : boxed_row {
    fixed_height = true;
    fixed_width = true;
    width = 65;
    height = 15;
    wizard_image;
    : column {
      : paragraph {
        : text_part { label = "Welcome to the Project Wizard."; }
        : text_part { label = ""; }
        : text_part { label = "Please choose a method of Project Creation."; }
        : text_part { label = ""; }
     }
    : row {
      spacer_1;
      : radio_column {
        key = "method";
        alignment = centered;
        fixed_height = true;
        height = 5;
        : radio_button { key = "scratch"; label = "Create Project from Scratch"; }
        : radio_button { key = "copy"; label = "Create Project by Copying Existing File"; }
      }
    }
    spacer_1;
    }
  }
  back_next_cancel_help;
}


What happens is that with the "back_next_cancel_help;" line in the code, AutoCAD will lock-up tighter than a drum.  If I comment out the line, and put an "ok_only;" tile in its place, then everything is peachy.
I've tried both the Back and Next buttons as retirement_button tiles and as just plain button tiles, as well as just the one as a retirement_button.  Neither makes a difference.

Can any of you shed any light??  Thanks, all...

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Interesting DCL Problem...
« Reply #1 on: November 11, 2003, 12:06:28 AM »
this works for me, see line No. 24
Code: [Select]

//--------------------------------------------------------------
// BACK button
//--------------------------------------------------------------

back_button : button { label = "<- Back"; key = "back"; }

//--------------------------------------------------------------
// BACK button
//--------------------------------------------------------------

next_button : retirement_button { label = "Next ->"; key = "next"; }


//--------------------------------------------------------------
// BACK-NEXT-CANCEL-HELP cluster
//--------------------------------------------------------------

back_next_cancel_help : column {
  : row { fixed_width = true; alignment = centered;
    back_button;
    : spacer {width = 2;}
    next_button;
    : spacer {width = 10;}
    : cancel_button { is_default = true; } // < -- here
    : spacer {width = 2;}
    help_button;
  }
}

//--------------------------------------------------------------
// WIZARD image tile
//--------------------------------------------------------------

wizard_image : image {
  key = "wizard_pic";
  fixed_width = true;
  fixed_height = true;
  alignment = top;
  width = 30;
  aspect_ratio = 1.0;
  color = 0;
}

wizard1 : dialog {
  label = "Project Creation Wizard";
  : boxed_row {
    fixed_height = true;
    fixed_width = true;
    width = 65;
    height = 15;
    wizard_image;
    : column {
      : paragraph {
        : text_part { label = "Welcome to the Project Wizard."; }
        : text_part { label = ""; }
        : text_part { label = "Please choose a method of Project Creation."; }
        : text_part { label = ""; }
     }
    : row {
      spacer_1;
      : radio_column {
        key = "method";
        alignment = centered;
        fixed_height = true;
        height = 5;
        : radio_button { key = "scratch"; label = "Create Project from Scratch"; }
        : radio_button { key = "copy"; label = "Create Project by Copying Existing File"; }
      }
    }
    spacer_1;
    }
  }
  back_next_cancel_help;
  }
TheSwamp.org  (serving the CAD community since 2003)

Columbia

  • Guest
Interesting DCL Problem...
« Reply #2 on: November 13, 2003, 10:56:01 AM »
Thanks, Mark!  This is definitely what I needed.  Everything is all better now...