谁能告诉我哪里出错了。我对lisp很陌生,对DCL也很陌生。一位同事帮了我,我也阅读了李的网站和阿芙拉Lisp程序的网站,让我达到这一点,但现在我有点卡住了。
每次我点击“取消”按钮都会出现这个错误
; 错误:错误的参数类型:consp“已取消”
最终目标是当点击取消按钮时,它将取消对话并打印一条消息“已被用户取消”
Lisp如下所示
DCL如下所示
- //---------------------------------//
- cbut
- : retirement_button
- {
- alignment = centered ;
- key = "cancel" ;
- label = "Cancel" ;
- is_cancel = true ;
- fixed_width = true ;
- width = 12 ;
- }
- okbut
- : retirement_button
- {
- alignment = centered ;
- key = "accept" ;
- label = "Update" ;
- is_default = true ;
- fixed_width = true ;
- width = 12 ;
- }
- edbox
- : edit_box
- {
- fixed_width = true;
- edit_width = 6;
- }
- //---------------------------------//
- tile_a
- :boxed_column
- {
- label = "Defaults" ;
- :edbox {key = "eb1"; label = "Timber length"; alignment = right;}
- :edbox {key = "eb2"; label = "Ply Length"; alignment = right;}
- }
- //---------------------------------//
- Materials
- : dialog
- {
- fixed_width = true;
- width = 40;
- label = "Materials";
- tile_a;
- cbut;
- okbut;
- }
- //---------------------------------//
提前感谢 |