2009-05-11 19:04 UTC
Hello Everyone
I work a little with standard autocad DCL. Now i want learn OpenDCl. It is more powerfull then standard DCL
I try to make 3 Tab Strips with CHANGE event. I wrote lisp code but something is wrong. When i changing tabs, defined list ONE TWO THREE doesn't load to ListBox.
What is wrong?
Also OK and CANCEL button are not working.
Here is lisp code:
(DEFUN c:TTT ()
(or LoadRunTime (load "_OpenDclUtils.lsp") (exit))
(LoadRunTime)
(LoadODCLProj "Test.odcl")
(dcl_FORM_SHOW Test_LISP_FORM)
(setq ONE (list "1" "2" "3"))
(setq TWO (list "4" "5" "6"))
(setq THR (list "7" "8" "9"))
(princ)
);LISP
(defun c:Test_LISP_FORM_OK_OnClicked ()
(dcl_Form_Close Test_LISP_FORM)
)
(defun c:Test_LISP_FORM_CANCEL_OnClicked ()
(dcl_Form_Close Test_LISP_FORM)
)
(defun c:Test_LISP_FORM_TABS_OnChanged (ItemIndex)
(cond
((= ItemIndex 0) (dcl_ListBox_AddList Test_LISP_FORM_ListBox1 ONE)
)
((= ItemIndex 1) (dcl_ListBox_AddList Test_LISP_FORM_ListBox2 TWO)
)
((= ItemIndex 2) (dcl_ListBox_AddList Test_LISP_FORM_ListBox3 THR)
)
);cond
)
And here .odcl file
{2}
Thx
Best regards
Kruuger
I work a little with standard autocad DCL. Now i want learn OpenDCl. It is more powerfull then standard DCL
I try to make 3 Tab Strips with CHANGE event. I wrote lisp code but something is wrong. When i changing tabs, defined list ONE TWO THREE doesn't load to ListBox.
What is wrong?
Also OK and CANCEL button are not working.
Here is lisp code:
(DEFUN c:TTT ()
(or LoadRunTime (load "_OpenDclUtils.lsp") (exit))
(LoadRunTime)
(LoadODCLProj "Test.odcl")
(dcl_FORM_SHOW Test_LISP_FORM)
(setq ONE (list "1" "2" "3"))
(setq TWO (list "4" "5" "6"))
(setq THR (list "7" "8" "9"))
(princ)
);LISP
(defun c:Test_LISP_FORM_OK_OnClicked ()
(dcl_Form_Close Test_LISP_FORM)
)
(defun c:Test_LISP_FORM_CANCEL_OnClicked ()
(dcl_Form_Close Test_LISP_FORM)
)
(defun c:Test_LISP_FORM_TABS_OnChanged (ItemIndex)
(cond
((= ItemIndex 0) (dcl_ListBox_AddList Test_LISP_FORM_ListBox1 ONE)
)
((= ItemIndex 1) (dcl_ListBox_AddList Test_LISP_FORM_ListBox2 TWO)
)
((= ItemIndex 2) (dcl_ListBox_AddList Test_LISP_FORM_ListBox3 THR)
)
);cond
)
And here .odcl file
{2}
Thx
Best regards
Kruuger