自定义通用对话框 [英] Customize Common Dialog

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

问题描述

有没有办法自定义打开文件常用对话框?我正在尝试

修改按钮文本,这样我就可以创建一个删除文件的常用对话框。我需要

与打开文件常用对话框相同的功能,但只需要

从打开按钮更改按钮文本。 删除。任何想法?


谢谢

Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks

推荐答案

我想你可以从FileDialog继承来创建你的删除对话框"但是我想b $ b不认为这是不推荐的。所以...将对话框的标题更改为

包括删除似乎是最好的选择!


-

--------------------- --------------------------------------------

Isaac Yuen

CEM

阿尔伯塔大学
iy ** *@ualberta.construction.ca

------------------------------- ----------------------------------


|阿尔伯塔大学

|电话:(780)492-2276

|传真:(780)492-0249

" George" < GE **** @ yahoo.com>在消息中写道

新闻:O1 ************* @ tk2msftngp13.phx.gbl ...
I guess you may inherit from FileDialog to create your "delete dialog" but I
think it''s not recommended. So...changing your dialog box''s title to
include "delete" seems to be the best option!

--
-----------------------------------------------------------------
Isaac Yuen
CEM
University of Alberta
iy***@ualberta.construction.ca
-----------------------------------------------------------------

| University of Alberta
| Phone: (780) 492-2276
| Fax: (780) 492-0249
"George" <ge****@yahoo.com> wrote in message
news:O1*************@tk2msftngp13.phx.gbl...
有没有办法定制打开文件常用对话框?我正在尝试修改按钮文本,以便创建一个删除文件常用对话框。 I
需要与打开文件常用对话框相同的功能,但只需要从打开按钮更改按钮文本。 删除。有什么想法吗?

谢谢
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



使用其他选项按钮,命令按钮和
复选框,组合框日历或预览选项等等....关闭

这些步骤


1.创建对话框(或表单)单独。

2.在显示对话框中对齐所需的所有控件

显示OpenFileDialog

3。现在将此对话框附加到公共对话框的底部。


在运行时,您将感觉到它是常见对话框的一部分。你可以用同样的方式

隐藏Common对话框的一些按钮,例如Open按钮。例如,并保持

您的按钮名为删除那里。你的表格会与那些控件重叠。


希望你理解它。


Shak。


"乔治" < GE **** @ yahoo.com>在消息中写道

新闻:O1 ************* @ tk2msftngp13.phx.gbl ...
To extend Common dialog with additional option buttons, command buttons, and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can
hide some of the buttons of Common dialog like "Open" for example, and keep
your button called "delete" there. Your form will overlap those controls.

Hope you understood it.

Shak.

"George" <ge****@yahoo.com> wrote in message
news:O1*************@tk2msftngp13.phx.gbl...
有没有办法定制打开文件常用对话框?我正在尝试修改按钮文本,以便创建一个删除文件常用对话框。 I
需要与打开文件常用对话框相同的功能,但只需要从打开按钮更改按钮文本。 删除。有什么想法吗?

谢谢
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



这一步让我很感兴趣:


''3。现在将此对话框附加在公共对话框的底部。''


需要执行哪些咒语才能执行此操作?


" Shakir Hussain < SH ** @ fakedomain.com>在消息中写道

news:%2 **************** @ tk2msftngp13.phx.gbl ...
This step intrigues me:

''3. Now attach this dialog at the bottom of the common dialog.''

What incantations need to be performed to do this?

"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
要扩展带有附加选项按钮,命令按钮,
和复选框,组合框日历或预览选项等的常用对话框....按照这些步骤

1.单独创建一个对话框(或表单)。
2.显示对话框中所需的所有控件,同时显示OpenFileDialog
3.现在在底部附加此对话框常见对话框。

在运行时,您会感觉到它是常见对话框的一部分。同样地,你可以隐藏Common对话框的一些按钮,例如Open按钮。例如,并且
保持
您的按钮删除那里。你的表格会与那些控件重叠。

希望你理解它。

Shak。

乔治 < GE **** @ yahoo.com>在消息中写道
新闻:O1 ************* @tk2msftngp13.phx.gbl ...
To extend Common dialog with additional option buttons, command buttons,
and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can
hide some of the buttons of Common dialog like "Open" for example, and
keep
your button called "delete" there. Your form will overlap those controls.

Hope you understood it.

Shak.

"George" <ge****@yahoo.com> wrote in message
news:O1*************@tk2msftngp13.phx.gbl...
有没有办法自定义常见的打开文件对话?我正在尝试修改按钮文本,以便创建一个删除文件常用对话框。我
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I


需要

打开文件常用对话框的相同功能,但只需要从打开按钮更改按钮文本。 删除。有什么想法?

谢谢
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks




这篇关于自定义通用对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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