明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1473|回复: 3

关于mscomdlg.commondialog

[复制链接]
发表于 2009-3-23 09:38 | 显示全部楼层 |阅读模式

请问怎么控制对话框的位置,现在每次运行它都在左上角,很不好看

(progn(setq dlg_obj(vlax-create-object "mscomdlg.commondialog"))
  (vlax-put-property dlg_obj "dialogtitle" "选择打印文件")
  (vlax-put-property dlg_obj "filename" "*.dwg")
  (vlax-put-property dlg_obj "filter" "*.dwg")
  (vlax-put-property dlg_obj "maxfilesize" "10000")
  (vlax-put-property dlg_obj "flags" "512")
  (vlax-put-property dlg_obj "action" "1")
  (setq dlg_filename (vlax-get-property dlg_obj "filename"))
    (vlax-release-object dlg_obj)
    )

 楼主| 发表于 2009-3-23 16:22 | 显示全部楼层
竟然没人解答,高手在很忙么
发表于 2009-3-24 08:42 | 显示全部楼层

直接用getfiled函数不行吗?为什么非得用VL呢?如果要控制对话框的位置,有可能还要用到别的控制,更有可能要用到API,我用VB试试了,"mscomdlg.commondialog"用VB居然不能CREATE成功,也不知道为什么,不知道跟VB中的Commandialog控制是不是一样的

 楼主| 发表于 2009-3-24 10:08 | 显示全部楼层

用getfiled不能多选

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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-7-2 11:22 , Processed in 0.169398 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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