找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 551|回复: 1

[研讨] opendcl中的dcl-MessageBox 消息框不能设置对话框的显示位置吗

[复制链接]

已领礼包: 19个

财富等级: 恭喜发财

发表于 2018-7-27 08:31:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
dcl-MessageBox
Syntax   (dcl-MessageBox Message [as String] {Title [as String]} {ButtonStyle [as Integer]} {IconStyle [as Integer]} {ShowHelpButton [as Boolean]})

Return Type Integer

This function displays a standard Windows message box with the message text specified in Message. The Title argument specifies the message box title, and the remaining arguments control the number and type of buttons, and the icon displayed beside the message. The default message box displays only an [OK] button with no icon. The return value indicates which button was pressed to close the message box.

Button Style Description
1 [Abort] [Retry] [Ignore] (Abort as default)
2 [OK]
3 [OK] [Cancel] (OK as default)
4 [Retry] [Cancel] (Retry as default)
5 [Yes] [No] (Yes as default)
6 [Yes] [No] [Cancel] (Yes as default)
11 [Abort] [Retry] [Ignore] (Retry as default)
13 [OK] [Cancel] (Cancel as default)
14 [Retry] [Cancel] (Cancel as default)
15 [Yes] [No] (No as default)
16 [Yes] [No] [Cancel] (No as default)
21 [Abort] [Retry] [Ignore] (Ignore as default)
26 [Yes] [No] [Cancel] (Cancel as default)

Icon Style Description
0 No icon
1 Warning icon
2 Information icon
3 Question icon
4 Error icon

Return Value Button
1 [OK]
2 [Cancel]
3 [Abort]
4 [Retry]
5 [Ignore]
6 [Yes]
7 [No]

论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 20个

财富等级: 恭喜发财

发表于 2018-7-27 10:04:43 | 显示全部楼层
1、要设置OPENDCL的对话框的位置,只能用函数 dcl-form-setpos ,
2、要用 dcl-form-setpos , 必须有FORMS的变量名

3、得到未知的FORM窗体,只能用 dcl_project_getforms

4、要用 dcl_project_getforms ,得用 dcl_getprojects

5、执行MESSGEBOX期间,调用dcl_getprojects得不到结果

6、所以,没办法设置dcl-messagebox的位置

  1. (defun c:tt ()
  2.   (dcl-messagebox "\n测试修改对话框位置.")
  3.   (setq a (dcl_getprojects))
  4. )



论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-4-20 23:39 , Processed in 0.226108 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表