allow_accept FUNCTION for .DCL

Discussion in 'AutoCAD' started by kzalec, Nov 8, 2004.

  1. kzalec

    kzalec Guest

    I'm having trouble understanding the "allow_accept" attribute as it applies to programmable dialog boxes. I read the definition in the Visual Lisp HELP section. However, I experimented by altering some code in the ACAD.DCL file and found no difference in the way the dialog box performed. For example, below is an excerpt from the ACAD.DCL file (Support directory). Note that "allow_accept=true". When I changed the code to "allow_accept=false", I found no difference in the way this particular text editing dialog box behaves (with regard to its buttons when the "Enter" key is pressed). Can someone please explain to me why I don't see any difference between the "true" and "false" settings?

    acad_txtedit : dialog {
    label = "Edit Text";
    initial_focus = "text_edit";
    : edit_box {
    label = "Text:";
    key = "text_edit";
    edit_width = 100;
    edit_limit = 2048;
    allow_accept = true;
    }
    ok_cancel;
    }
     
    kzalec, Nov 8, 2004
    #1
  2. kzalec

    BillZ Guest

    Same here:

    alow_accept = False

    I can hit enter with no results.

    alow_accept = true

    I hit enter and the accept button is returned.

    Bill
     
    BillZ, Nov 9, 2004
    #2
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.