Re: setPalette doesnt work in win32

2004-01-07 Thread James Osborn
I dug through the archive and found a similar problem posted regarding 
setPalette under Solaris.  So I tried the suggested workaround in that post:

1. Issue the setPalette call right after creating the main window.
2. Use the 'interactive' priority option.
So for example:

   $mainwidget = Tk::MainWindow->new ();
   $mainwidget->setPalette(qw/background snow3 priority interactive/);
This works under all Windows OS's I have access to.  As I previously 
reported, using setPalette later in the program and/or apparently 
without the interactive priority option set, causes it to not work under 
W2K (and I gather Solaris), but does work under XP, go figure.

-- James

James Osborn wrote:
An obscure and probably (?) highly specific problem.  When I install the 
"Apache/Perl (binaries for both Perl-5.6/Apache-1.0/mod_perl-1 and 
Perl-5.8/Apache-2/mod_perl-2)" from the ports page 
(http://www.cpan.org/ports/index.html#win32), using setPalette in my pTk 
programs works fine under XP Pro, but installing the same port under W2K 
Pro causes setPalette to do nothing.  Furthermore, the default color 
scheme varies from W2K machine to W2K machine (e.g. seafoam on one and 
black on another).  This behavior is clearly demonstrated by the widgets 
demo too, not just my programs.

Anybody know what I am talking about or how to fix it?

-- James



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



setPalette doesnt work in win32

2003-12-11 Thread James Osborn
An obscure and probably (?) highly specific problem.  When I install the 
"Apache/Perl (binaries for both Perl-5.6/Apache-1.0/mod_perl-1 and 
Perl-5.8/Apache-2/mod_perl-2)" from the ports page 
(http://www.cpan.org/ports/index.html#win32), using setPalette in my pTk 
programs works fine under XP Pro, but installing the same port under W2K 
Pro causes setPalette to do nothing.  Furthermore, the default color 
scheme varies from W2K machine to W2K machine (e.g. seafoam on one and 
black on another).  This behavior is clearly demonstrated by the widgets 
demo too, not just my programs.

Anybody know what I am talking about or how to fix it?

-- James

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]