Jeremy White wrote:
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.
I've done a little digging since I submitted this.
It appears that it is being called when I reset the size and position
after hiding, and then again when the forced animation begins collapsing
it down. Activate is not called again while it is collapsing, but then
it already has active and focus while its doing this operation at high
speed.
My thoughts are that it is somewhere doing this in the size and or
location algorithms. I'll do some more debuging this afternoon (EST) to
see if i can find th eexact point at which this occurs.
~
I'll do some fiddling with the API call although I admit I'm not the
most comfortable with making the directed calls to the API, but if it
works, it will be nice :)
~
While I have your ear regarding fancy features... Do you know of the
method to display those little Tooltip messages that windows uses? This
program isn't designed to emulate them so much as the MSN/Aim/Etc
notification popups (once I have it working properly I'll even
modularize them like I have done for identical (e.g. property windows))
I know the this one is a stretch, and I suppose I could do the research
myself if I had spare time recently, but what property/style/method is
needed for me to graphics laden my program to the likes of
Trillian/AdAware/etc?
Thanks for the great work.
Jason