在模式对话框顶部显示进度条对话框
我正在开发一个基于 wxWidget 的应用程序。在 Mac 上,我尝试在模式对话框上打开进度条对话框,但它位于模式对话框后面。虽然进度对话框在那里,但我无法在应用程序中执行任何操作,因此功能方面它是正确的,但我想将其带到前面,或将我的模式对话框发送到后面?
如果有人能指出一些代码参考,我将非常感激,因为我是 Mac API 的新手。
I am working on a wxWidget-based application. On the Mac, I am trying to open a progress bar dialog on a modal dialog, but it goes behind my modal dialog. While the progress dialog is there, I am not able to perform any operations in application, so functionality-wise it is correct, but I want to bring it to the front, or send my modal dialog behind?
I would really appreciate if someone can point to some code reference as I am new to the Mac API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做
wxWindow::Raise()
对我有用。还要确保进度对话框的父级是您的模式对话框。话虽如此,将进度条放在对话框本身中会更加流畅。Doing
wxWindow::Raise()
worked for me. Also make sure the progress dialog's parent is your modal dialog. With that said, putting the progress bar in the dialog itself would be a lot more slick.