Sometimes it fires the Activate, sometimes it doesnt...odd, and annoying to have it grab the cursor away, if only for brief moments, It can stop you typing at just the right time..

WinXP Pro SP2
AS perl 5.8.4 build 810
Win32::GUI 1.02

Any help in sorting out why its pissy/not working properly would be appreciated!

Very interesting example. I checked that the win32-gui show method is passing the correct parameters to the MS API function ShowWindow - and it is, so the problem is not there. The only thing I can think of is when you are manipulating the window one of the methods is somehow performing an implicit activate?

While looking at the MS doco for ShowWindow:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/showwindow.asp

I came accross the AnimateWindow function:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/animatewindow.asp

Now, this function doesn't exist in win32-gui, but you should be able to call it by win32-API - if you (or anyone else for that matter) thinks it should be in the core, I'll add it before the next release.

Cheers,

jez.



Reply via email to