Does anyone know how to get a minimised window to flash its taskbar label? I've seen other (non-wxPython) apps do this when they want to notify the user that something has changed while the app window is minimised, and I've had a request to implement this in my app as well. Alas, I've found nothing in the mailing list archives which mention this at all, and after spending a couple of hours hunting through the wxWindows docs I can't find any mention of it there either.
I've tried doing the obvious things like minimising the window and then calling wxFrame.Raise(), but to no avail.
Any ideas?
Thanks in advance,
- Erik.
PS: I'm running wxPython 2.3 under Win2K, for what it's worth...
I have intalled the latest wxpython 2.3.2 on many users machines (MSW)
without problem. Unfortunately one machine has a problem - the demo just
hangs.
I had a chance to investigate it a little, and it seems that when a wxFrame
is created teh message DefWindowProc calls are called recursively nd the
stack eventually overruns.
The message at the time seems to be windows message 0x30 wihch seems to be a
SetFont message. Has anyone seen and or solved this problem? There is no
problem with MDI apps wich run fine without wxFrame windows!
Regards,
Andrew
···
_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law.
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.
www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322
AFAIK, this is a win2k thing. That is, there's an option in Win2k to not allow windows to force themselves to the front of the window stack if they aren't the current app.
I would have thought Raise would do trigger the flashing (it uses SetForegroundWindow under the covers). The following MSDN article describes the SetForegroundWindow function, note the caveats on when it does/doesn't "work" for flashing.
Far as I can see, we don't have access to a function that calls FlashWindowEx directly.
HTH,
Mike
Erik Westra wrote:
···
Hi guys,
Does anyone know how to get a minimised window to flash its taskbar label? I've seen other (non-wxPython) apps do this when they want to notify the user that something has changed while the app window is minimised, and I've had a request to implement this in my app as well. Alas, I've found nothing in the mailing list archives which mention this at all, and after spending a couple of hours hunting through the wxWindows docs I can't find any mention of it there either.
I've tried doing the obvious things like minimising the window and then calling wxFrame.Raise(), but to no avail.
Any ideas?
Thanks in advance,
- Erik.
PS: I'm running wxPython 2.3 under Win2K, for what it's worth...
More info on this bug:
The crash happens only if the wxFrame has None as parent otherwise it does
not crash until the app is closed - (although it is possible this another
problem)
Cheers,
Andrew
···
_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law.
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.
www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322
AFAIK, this is a win2k thing. That is, there's an option in Win2k to not allow windows to force themselves to the front of the window stack if they aren't the current app.
I would have thought Raise would do trigger the flashing (it uses SetForegroundWindow under the covers). The following MSDN article describes the SetForegroundWindow function, note the caveats on when it does/doesn't "work" for flashing.
Ahh...thanks! With your help, I've figured it out at last...I was assuming that each window was distinct, so having one window in an app minimised would cause it to flash, even if another window in the same app was still active. After reading your message (and the MSDN article), and thinking about it for a few minutes, I realised that the taskbar label only flashes if the application itself is *NOT* in front. A simple change to my test app made the flashing occur -- I just have to call wxFrame.Raise() on an iconised window, and so long as another app window isn't active it will indeed flash.
I have intalled the latest wxpython 2.3.2 on many users machines (MSW)
without problem. Unfortunately one machine has a problem - the demo just
hangs.
I had a chance to investigate it a little, and it seems that when a
wxFrame
is created teh message DefWindowProc calls are called recursively nd the
stack eventually overruns.
The message at the time seems to be windows message 0x30 wihch seems to be
a
SetFont message. Has anyone seen and or solved this problem? There is no
problem with MDI apps wich run fine without wxFrame windows!
I havn't ever seen this.
Is it wxPython 2.3.2.1? What is the version of Python? What is different
about this machine from all the others? (Windows version, software
installed, etc.)
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
Machine - Pentium4 1.7GHz Win2K GeForce3
Nothing special about the software.
I note that a module called nvdesk appears in the callstack (this is
probabaly an nvidia thing to do with the GeForce3 card) - but this is
probably just part of the hardware acceleration.
It might me the P4 to blame (although I dont know why) - it is the first P4
I have installed wxpython on.
Thanks,
Andrew
···
-----Original Message-----
From: wxpython-users-admin@lists.wxwindows.org
[mailto:wxpython-users-admin@lists.wxwindows.org]On Behalf Of Robin Dunn
Sent: 19 March 2002 20:45
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] wxpython or wxwindows bug
> I have intalled the latest wxpython 2.3.2 on many users machines (MSW)
> without problem. Unfortunately one machine has a problem - the demo just
> hangs.
> I had a chance to investigate it a little, and it seems that when a
wxFrame
> is created teh message DefWindowProc calls are called recursively nd the
> stack eventually overruns.
> The message at the time seems to be windows message 0x30 wihch
seems to be
a
> SetFont message. Has anyone seen and or solved this problem? There is no
> problem with MDI apps wich run fine without wxFrame windows!
>
I havn't ever seen this.
Is it wxPython 2.3.2.1? What is the version of Python? What is different
about this machine from all the others? (Windows version, software
installed, etc.)
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be
read, copied and used only by the intended recipient. No
communication sent by e-mail to or from Eutechnyx is intended to
give rise to contractual or other legal liability, apart from
liability which cannot be excluded under English law.
This message has been checked for all known viruses by Star
Internet delivered through the MessageLabs Virus Control Centre.
www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322
_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law.
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre.
www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322