Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(setq Path (getvar "dwgprefix"))
(setq DCLFile (strcat Path "FicDCL" ".dcl"))
(defun c:StartDCL ()
(setq dcl_id (load_dialog (strcat Path "Combine.dcl")))
(if (not (new_dialog "Main" dcl_id))
(exit))
(action_tile
"cancel" "(done_dialog)" )
(action_tile
"accept" "(done_dialog)" )
(start_dialog)
(unload_dialog dcl_id)
);defun
This function (StartDCL) aims to start a dialog named "main" , it looks like this :
In the dcl file (named "Combine.dcl") there're two other dialog definitions "hello" and "OtherDialog" :
My objectif is:
If radio button "Description On/Off" is selected : show "hello" Dialog
Otherwise : show "OtherDialog" Dialog.
N.B: the new dialog to be shown (hello or OtherDialog) should be in the same "main" dialog ; Just bellow "ok" button (NOT A CHILD DIALOG)
Thanks !
Solved! Go to Solution.