几何尺寸与公差论坛

 找回密码
 注册
查看: 825|回复: 0

【转帖】file open dialog bo

[复制链接]
发表于 2009-4-12 20:55:05 | 显示全部楼层 |阅读模式
file open dialog box
i have been trying to programmatically populate the file/open dialog box using swapp::getopenfilename; for example:
fname = swapp.getopenfilename ("open file", "123456", "*.sldasm|*.sldasm", 0, options, cname, dname)
this populates the file type dropdown listbox with *.sldasm, but doesn't populate the file name dropdown listbox. does anyone know how to populate the file name box, or am i going about this completely the wrong way? should i call swapp.setcurrentworkingdirectory, or setpromptfilename? please advise!
thanks!!
to defeat the wheat, go against the grain.
the file has to exist and be in the folder that opens intially in order for it to populate the filename box
good to know. thanks, luke.
to defeat the wheat, go against the grain.
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 11:14 , Processed in 0.034115 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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