buzzthebuzzsaw has asked for the wisdom of the Perl Monks concerning the following question:

I'm just trying to see if there is a way of specifing the colour depth of the window that is opened up by perl/tk.
I'm working on an X system that allows you to open 24bit windows on an 8bit root window, and all windows opened by perl/tk are 8bit.
The colormap on the 8bit windows is hammered and the gif's and buttons are in black and white. I'd just like them to be using the decent 24bit colour.

Anyone got any ideas???

Replies are listed 'Best First'.
Re: Perl/Tk Window...
by buzzthebuzzsaw (Acolyte) on Aug 14, 2002 at 14:44 UTC
    O.k. I've got no replys, but this is just incase anyone's interested...

    So far what I've found out is that I need to be using something that looks like this to open the MainWindow...

    my $main = MainWindow->new(-background => "white", -visual => "$main, truecolor, 24");

    The only problem is that your supposed to pass the HASH of the window to the -visual option, but the HASH of the MainWindow is what I'm creating here and is what I want to use the -visual option on...

    Does anyone have any ideas as to what I should using instead of the second $main, (or what the second $main should contain)???