Passing Data to a Control Bar, for a Modal Form

Started by Emiliano, May 29, 2014, 02:41:01 AM

Previous topic - Next topic

Emiliano

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 (/)  ?

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft