While active editor....

Discussion in 'AutoCAD' started by Rudy Tovar, Dec 7, 2004.

  1. Rudy Tovar

    Rudy Tovar Guest

    Ok, Doug, Luis or anyone, feel free to comment....

    Dialog show
    Action_button
    Close dialog
    Open windows editor
    Do this or That
    Close windows editor
    Show dialog
    etc.

    The problem is switching to the windows editor, that gets minimized if the
    autocad dialog is still active. No problem, close autocad dialog then show
    windows editor, but how do I recall the autocad dialog without it being the
    active dialog, when I close the windows dialog....?
     
    Rudy Tovar, Dec 7, 2004
    #1
  2. Rudy Tovar

    Doug Broad Guest

    Rudy,
    See below:



    DCL stuff?
    What windows editor? Are you switching applications?
    Are you entering mtext?
    What autocad dialog? Just use (new_dialog ...) to display a particular dialog.
     
    Doug Broad, Dec 7, 2004
    #2
  3. Rudy Tovar

    Doug Broad Guest

    I would suggest that you always close the dialog. What advantage
    would there be to keeping the dialog open? Notepad is another
    application though and though autocad may be its parent, the notepad
    window is only affected if you don't change focus to the other application.

    Can't say I do this much. Post some demo code so we can avoid
    talking in generalities.

    Regards,
    Doug
     
    Doug Broad, Dec 7, 2004
    #3
  4. Rudy Tovar

    Rudy Tovar Guest

    ahhhh....no....the question is this....If I'm controling a dialog within
    autocad and I pick a button to call the windows editor, as an example
    "notepad", how can I switch to "notepad" without closing the current autocad
    dialog, and avoid autocad from minimizing "notepad" and keeping the currrent
    autocad dialog active, or should I say on top.
     
    Rudy Tovar, Dec 7, 2004
    #4
  5. Rudy Tovar

    Rudy Tovar Guest

    Thanks for your reply Doug, sorry for the long wait..., my mind was in lala
    land....programming...forgot about post....

    Yeah, that's exactly what I did... two different entities....

    Oh, the code is so generic that, sorry I didn't feel it was really necessary
    since the issue was more on ingenuity...

    The code could have been displayed as such...

    (action_tile "button0" "(do_this_or_that)")

    (defun do_this_or_that (/)
    etc.
    (startapp <windows_editor> <file>)
    (Princ)
    )

    Or

    (action_tile "button0" "(setq close_cond 1)(done_dialog)")

    ;at the end of unload dialog

    (cond
    ((= close_cond 1)(do_this_or_that))
    etc.
    )
     
    Rudy Tovar, Dec 8, 2004
    #5
  6. Rudy Tovar

    James Murphy Guest

    This is one reason I learn VBA. The simple stuff needing user's input can
    stay on the command line using intget, getkword, getstring ect. The routines
    that require a lot more info I use the forms in VBA. A heck of a lot easier
    to create and pass info to/from a dialog.

    Murph
     
    James Murphy, Dec 8, 2004
    #6
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.