我怎样才能确保一个wxFrame被带到前台? [英] How can I ensure that a wxFrame is brought to the foreground?

查看:168
本文介绍了我怎样才能确保一个wxFrame被带到前台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个接收事件的 wxFrame 。每当一个事件进来,我想框架被带到前台。

我目前正在使用:

  my_frame-> SetFocus的(); 

但是,这似乎并不适用于最小化帧。如何将框架设置为活动窗口并将其置于前面?



另外,是否有一种闪烁标题的方法?

解决方案

我没有一个可用的例子,但你有没有尝试过?b
$ b

  my_frame-> Raise()

它将窗口拉到顶部窗口层次结构。


I have a wxFrame that receives events. Whenever an event comes in, I want the frame to be brought to the foreground.

I'm currently using:

my_frame->SetFocus();

But that doesn't seem to work for minimized frames. How can I set the frame as the active window and bring it to the front?

Alternatively, is there a method that flashes the title?

解决方案

I don't have a useable example but have you ever tried

my_frame->Raise()

It raises the window to the top of the window hierarchy.

这篇关于我怎样才能确保一个wxFrame被带到前台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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