调整常用对话框的按钮位置 [英] Adjust button location of common dialogs

查看:85
本文介绍了调整常用对话框的按钮位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们有以下常见对话框:
1.打开文件对话框,
2.页面设置对话框等.

我要获取按钮控件并更新其位置,是否有任何机构可以解决该问题?

此致
Somnath

Hi,
We have following common dialogs:
1. Open File Dialog,
2. Page setup dialog etc.

I want get button controls and update its locations, does any body has solution for same?

Regards,
Somnath

推荐答案

这确实不是一个好主意,有两个原因:
1)之所以称为 common 对话框,是因为它们对所有应用程序都是通用的.
2)按键位置(以及确实存在其他项目)因操作系统而异. XP的打开文件对话框"与Win7中的表弟非常不同-但相同的代码会同时生成两者.如果仅移动它们,则可能会使您的应用程序在某些系统上无法使用.

如果您想具有特定的对话框设计,则可以将其自己创建为单独的表单,然后改用它.
That really isn''t a good idea, for two reasons:
1) They are called common dialogs because they are supposed to be common to all applications.
2) The button positions (and indeed the existence of other items) varies from OS to OS. the Open File Dialog for XP is very, very different from it''s cousin in Win7 - but the same code generates both. If you just move them, you may make your application unusable on some systems.

If you want to have a specific design of dialog, then create it yourself as a separate form, and use that instead.


这篇关于调整常用对话框的按钮位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆