Command Button Focus won't change

Discussion in 'AutoCAD' started by hawstom, Feb 10, 2004.

  1. hawstom

    hawstom Guest

    I have a UserForm for Building a list of Files (like the Palm Desktop Add-in box). It has 5 buttons: Add... Remove... MoveUp MoveDown Done.

    I want Done to be the default button, but Add (the first button) is stuck as the button with focus and is the button that responds to [Enter].

    I set these properties for the UserForm:
    Default=True for Done and False for all others.
    TakeFocusOnClick = False for all buttons.

    Any ideas? I guess I better go answer a LISP question.
     
    hawstom, Feb 10, 2004
    #1
  2. Set TabIndex to 0 for the control. There is also a SetFocus method you can use in the code.

    Regards - Nathan
     
    Nathan Taylor, Feb 10, 2004
    #2
  3. hawstom

    hawstom Guest

    The TabIndex did the trick. Thanks. I guess there are a lot of nuances to learn.

    Tom Haws (find me at Google)
     
    hawstom, Feb 12, 2004
    #3
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.