button

Topics relating to AutoLisp and SDS.

Moderators: CMS Inc, avaernes

Post Reply
Jhun
Newbie
Posts: 7
Joined: Wed Aug 22, 2007 5:46 pm

button

Post by Jhun » Sat Sep 01, 2007 7:51 am

Hi!

How to create a DCL that if user press the "enter" then proceed with the function as like clicking "OK" button. I already set "OK" button is_default = true but still if I press the enter nothing will happen. See the code below.

thanks in advance

Jhun

Code: Select all


dellay : dialog {
   label = "DELETE LAYER";
   initial_focus = "layname";
   : column {
     : edit_box {
       label = "Layer";
       key = layname;
       width = 10;
       value = "";
     }
     : row {
       : button { 
         key = "accept";
         width = 10;
         label = "OK";
         is_default = true;
       }
       : button { 
         key = "cancel";
         label = "CANCEL";
         width = 8;
         is_default = false;
         is_cancel = true;
       }
     }
   }
}

:wink:
Post Reply