且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

向对话框添加按钮

更新时间:2023-10-04 15:02:34

对话框框架是一个简单的框架,用于提示用户获取一些数据/设置然后执行一些操作。操作或取消。

The Dialog framework is a simple framework for prompting users to obtain some data/settings then performing some action or canceling.

对于您要执行的操作,使用对话框框架很可能没有任何意义,而是可以/应该创建另一种形式

For what you're trying to do, it most likely doesn't make sense to use the dialog framework and instead you could/should create another form if you need additional functionality.

但是,如果您确实坚持使用Dialog框架,则可以添加运行时按钮并使用registerOverrideMethod。

However, if you do insist on using the Dialog framework for this, you would add a runtime button and use registerOverrideMethod.

请参阅以下链接:

https://msdn.microsoft.com/zh-CN/library/dialogfield.registeroverridemethod.aspx

https://blogs.msdn.microsoft.com/axsupport/2015/06/07/u在运行时单独添加一个控件/