Re: Is PTK a dead end? Or [ UpdateWrapper woes ]

Ch Lamprecht <[email protected]> Wed, 31 Oct 2007 18:16:55 +0100
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
Michael Higgins wrote:
> On Tue, 30 Oct 2007 23:48:05 +0100
> Ch Lamprecht <[email protected]> wrote:

>>> Anyway, there is not a question that there are issues. Finding why and having
>>> a global fix or recommended practice is the goal.
>>>
> 
> So, in the spirit of making that happen, here is the apparent fix for "UpdateWrapper: Failed to create container" -- at least when using Tk::StayOnTop on Win32:
> 
> Don't use Tk::StayOnTop (on Win32, or at least in Windows XP), but rather do it like this:
> 
> use Win32::API;
> ...
> 
> Win32::API-> new("user32","SetWindowPos",[qw(N N N N N N
> N)],'N')-> Call(hex($mw->frame),-1,0,0,0,0,3); #in MainLoop;
> 

How about:

$window->attributes(-topmost => 1);

perldoc Tk::Wm ??

Christoph
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk