Close then open form

Started by jambanks · 2009-08-27 16:04 UTC · 2 replies · SMF topic #890

I am trying to allow the user to close the dialog pick a point the the dialog reopen. but am having trouble getting the form to show again.

(defun c:1_OnClicked (/)
    (progn
      (dcl_Form_Close SarensOutriggerCoOrdinates_SaOutrigger)
      (setq insertpoint (getpoint "\npick Known Northing/Easting Point: "))
      (dcl_Form_Show SarensOutriggerCoOrdinates_SaOutrigger)
          )
  )

Any suggestions?
You need to call Form_Close from your OnClicked handler, then immediately return.  Your code that calls Form_Show to intially show the form should handle the point pick and re-opening the dialog after the initial Form_Show returns.  There are samples of this in the help file and here in the forums, but I don't have a ready link.
Hi,

it took me a while until I've found but finally I got it. You can find {2}. It's part of the {2}.

HTH, Fred