Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
Sorry :) I had a bad day and this was plain nasty so i reacted in quite an elitist way. Anyway, someone with more skill than both of us has provided a better solution. I'm glad you're here and paying attention, Win32::GUI::Users needs everyone it can get :) Steve - Original Message -

RE: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Chris
I told you mine was dirty, and not very good, believe me now? _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Pick Sent: Friday, November 21, 2003 10:29 AM To: Chris; perl-win32-gui-users@lists.sourceforge.net Subject: Re: Re: [perl-win32-gui-users] Windows XP Co

[perl-win32-gui-users] Flickering - code change/suggestion for new build.

2003-11-21 Thread Jeremy White
All, I've just tried the below code: From: "Garside, Trevor" <[EMAIL PROTECTED]> A while back, I changed my Win32::GUI 0.558 sources and achieved flicker-free resize. Here's what I did: CHANGE LINE 4059 FROM: wcx.style = CS_HREDRAW | CS_VREDRAW; // TODO (default class style...) TO: wcx.styl

RE: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Chris
I'll compile it in a few hours, I have Vs2003.net on all my systems _ From: Steve Pick [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 10:56 AM To: Steve Pick; Chris; perl-win32-gui-users@lists.sourceforge.net Subject: Re: Re: [perl-win32-gui-users] Windows XP Color Bug

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Jeremy White
All, To fix the colour bug on XP you need to create a class: my $clsFetch = Win32::GUI::Class->new( -name => "classxpcolour", -color => 16,) or die("Could not create Class\n"); You then attach the class to the window when you create it. This is will work even if the OS isn't XP. I'v

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
Right, I've found this link which may fix the problem of Win32::GUI not using Windows XP themes if they are available. However I don't have Windows XP, so someone who does have WinXP and Visual Studio .NET (2003?) might be able to try creating these crazy manifests: http://msdn.microsoft.com/l

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
That's a *dreadful* "solution". 1. It doesnt "fix" anything it just makes the background grey. 2. You used a billion labels made wide with spaces instead of using ONE with -width => $win->Width, -height => $win->Height 3. This would probably screw up capturing events, would make resizing excruti

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Chris
However, some people have hacked the playschool mode, to make it allow custom themes, which was simply done by removeing the check to make sure the themes are signed, so bow some of use have very nice looking gui's. I found a tempary fix for the issue, but it's not very cool, for ($zzz=0; $zzz < 10

Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
Hi, This happens with most MFC apps. I havent found a way to fix it. This is a crazy bug, most MFC apps will probably exhibit this on windows xp. Microsoft are crazy for not detecting MFC and auto-converting. The only fix is to disable Playskool Mode in windows xp, which you should have done a

RE: [perl-win32-gui-users] Win32::GUI::XMLBuilder

2003-11-21 Thread Garside, Trevor
A while back, I changed my Win32::GUI 0.558 sources and achieved flicker-free resize. Here's what I did: CHANGE LINE 4059 FROM: wcx.style = CS_HREDRAW | CS_VREDRAW; // TODO (default class style...) TO: wcx.style = 0; That's it. Now, I'm not exactly sure what other ramifications that has, but

RE: [perl-win32-gui-users] Destroying a window

2003-11-21 Thread Jeremy White
As I understand things (and I could be wrong) your suggestion wont make any difference since the resources of the window aren’t released by the xs side of things. From: Peter Eisengrein <[EMAIL PROTECTED]> To: perl-win32-gui-users@lists.sourceforge.net Subject: RE: [perl-win32-gui-users] Dest

RE: [perl-win32-gui-users] Destroying a window

2003-11-21 Thread Peter Eisengrein
What about if you localize the creation of a window? For example, I sometimes will use a sub that creates a window only when called and when the sub returns the window and any reference to it is undef? -Original Message- From: Jeremy White [mailto:[EMAIL PROTECTED] Sent: Friday, November 2

Re: [perl-win32-gui-users] Win32::GUI::XMLBuilder

2003-11-21 Thread Jeremy White
From: Blair Sutton/Odey <[EMAIL PROTECTED]> My only problem is I don't really want to maintain a separate website to keep the code, really it would be nice to add it as an extras feature to Win32::GUI. I am willing to submit the code with some examples (still need to write documentation - altho

RE: [perl-win32-gui-users] Destroying a window

2003-11-21 Thread Jeremy White
Unfortunately undef does not release the resources that window uses. So, if you need to dynamically create (and destroy) a window continually then at some point you will run out of memory. From: Peter Eisengrein <[EMAIL PROTECTED]> To: "'Cruickshanks, Darin'" <[EMAIL PROTECTED]>, perl-win32-