乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 80|回复: 0

[编程交流] DCL - starting a different fun

[复制链接]

5

主题

20

帖子

15

银币

初来乍到

Rank: 1

铜币
25
发表于 2022-7-6 09:00:37 | 显示全部楼层 |阅读模式
Hello all.
 
I have this problem with a DCL.
The dialog opens and i can select the options i want.
But when i press OK nothing happens. I have tried numerous options and code placement but keep getting error to few or to many arguments.
What i want the dialog to do is as followed:
I want it to open and have 2 radio options available wich it does.
Then i want it to run a different function bases on the selection the user makes.
That's about it.
If any of you could look at my code and help me that would be great.
 
Here is my code:
 
  1. (defun C:TheCleaner();define function (setq dcl_id (load_dialog "TheCleaner.dcl"));load dialog (if (not (new_dialog "TheCleaner" dcl_id);test for dialog     );not   (exit);exit if no dialog );if (setq w (dimx_tile "im");get image tile width       h (dimy_tile "im");get image tile height);setq (start_image "im");start the image (fill_image 0 0 w h 5);fill it with blue (end_image);end image (action_tile "rb1" "(progn (TheCleaner1)");!!! trying to load the function. (action_tile "rb2" "");!!!!Reserverd   (action_tile   "cancel";if cancel button pressed   "(done_dialog) (setq userclick nil)";close dialog, set flag   );action_tile (action_tile   "accept";if O.K. pressed   "(done_dialog)(setq userclick1 T))";close dialog, set flag );action tile (start_dialog);start dialog (unload_dialog dcl_id);unload(princ));end defun(princ)
 
Thanks in advance.
 
bob
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 06:12 , Processed in 0.646140 second(s), 54 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表