OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on May 29, 2014, 02:41:01 AM

Title: Passing Data to a Control Bar, for a Modal Form
Post by: Emiliano on May 29, 2014, 02:41:01 AM
Forse l'argomento è già stato discusso ma non so come cercare  :-[

Unfortunately, this code does not work:
Code (autolisp) Select

(defun c:MappaturaColori/FormPrincipale/DettagliRigo#OnClicked (/ )
  (setq col_orig "10")
  (dcl-Form-Show MappaturaColori/DettaglioMapColori)
  (dcl-Control-SetCaption MappaturaColori/DettaglioMapColori/ColoreOrigine col_orig)
)


It seems that you can not open a Modal form and pass some data to it.
The only way is to use (defun c:MappaturaColori/DettaglioMapColori#OnInitialize (/)  ?
Title: Re: Passing Data to a Control Bar, for a Modal Form
Post by: owenwengerd on May 29, 2014, 03:28:55 AM
Quote from: Emiliano on May 29, 2014, 02:41:01 AM
It seems that you can not open a Modal form and pass some data to it.
The only way is to use (defun c:MappaturaColori/DettaglioMapColori#OnInitialize (/)  ?

That is correct.