启用“崇拜者/自定义内容"对话框时,PF主窗口“调整大小"无法重绘 [英] PF Main Window Resize fails to redraw when adorer/custom content dialogue is active

查看:91
本文介绍了启用“崇拜者/自定义内容"对话框时,PF主窗口“调整大小"无法重绘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用自定义对话框来显示内容,同时使主窗口变灰.如果在显示自定义对话框之前最大化了主窗口,则一切正常.即当我调整主窗口的大小时,它会正确刷新.但是,如果我有 将窗口调整为较小的尺寸,然后打开自定义对话框,然后尝试最大化主窗口,但主窗口的内容不会调整大小/重新绘制.一旦关闭模型对话框,主窗口就会正确呈现.
I am using the a custom dialog to display a content while graying out the main window. if the Main window is maximized before the custom dialog is displayed everything works fine. i.e when i resize the Main Window it refreshes properly. But say if i have resized the window to a smaller size and the open the custom dialog and then try to maximize the main window the contents of the main window does not resize/redraw. And once the model dialog is closed the Main window renders properly.

推荐答案

这就是Modal的全部意义.  带有调用ShowDialog的代码的窗口将变为非活动状态,并且仅在Modal窗口关闭后才会响应.
That's what Modal is all about.  The window with the code to call ShowDialog will become inactive and will only respond once the Modal window is closed.


这篇关于启用“崇拜者/自定义内容"对话框时,PF主窗口“调整大小"无法重绘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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