Re: Chat

Neil Hughes <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
On 04/04/2007 23:21, BBands wrote:
> 
> If the ap is minimized or under another window when a message comes in
> I'd like to restore it or pop it to the fore to get the receiver's
> attention. How can I do this? For convenience I've attached chat.py
> below.

Kevin suggested the following to me...yikes, 2 years ago...when I was 
enquiring about getting a minimized app to re-appear:

 > >I would think that just doing self.visible = True would be enough, but
 > >you might also want to do call self.Raise(). However, it might be more
 > >correct to use the methods in wx.TopLevelWindow such as Iconize that
 > >allows you to restore the window. Also, you'll probably want to use
 > >RequestUserAttention. See the wxWidgets documentation for details.

self.visible = True seemed to do the trick from the taskbar, however if 
it's behind another window I'm not so sure. You could minimize to the 
taskbar and then raise it, I suppose.

*If* I had my wxWidgets documentation around I'd check...sorry.

-- 
Neil

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.