Re: Is PTK a dead end? Or [ UpdateWrapper woes ]
Michael Higgins <[email protected]> Wed, 31 Oct 2007 09:57:19 -0700
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Organization | The Banfield Group, LLC |
| Message-ID | <[email protected]> |
On Tue, 30 Oct 2007 23:48:05 +0100 Ch Lamprecht <[email protected]> wrote: > Michael Higgins wrote: [8<] > The following code works without any problems. Could you give an example, so > others can see what you are talking about? > Okay, thanks for the reality check. Indeed, I have scads of old code laying about. Most of it does still work, just like your example. I guess the UpdateWrapper error message I had run into was referenced online to very few (one actually) workarounds. Having just added two lines of code to replace the StayOnTop module on win32 seems to be the actual fix I needed, where I thinking the problem was more general. [8< code ex] > > > 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; Found here: http://aspn.activestate.com/ASPN/Mail/Message/perl-tk/1861069 with reference: http://perlmonks.org/index.pl?node_id=205340 Sorry for the noise && thanks a LOT for the kind help. Cheers, -- Michael Higgins <[email protected]> --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk