Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Simple Tk question.

by BlueBlazerRegular (Friar)
on May 01, 2002 at 17:48 UTC ( [id://163314]=note: print w/replies, xml ) Need Help??


in reply to Simple Tk question: colour of drop-down menu


I will second {NULE} - for just starting out, this code looks good. Especially the use of warnings and strict. And to top it off, I found a solution to one of my problems by reviewing your code.

As {NULE} mentions, you need to apply the background to each menu item. The issue with the tear-off and the separator bar are actually two different things. The tear-off item can be fixed by using the 'setPalette' option on the main window, like this:

$main->setPalette('cyan');

This does more than just set the color - it supposedly changes the entire color palette so border shadowing and other such things appear correctly, although I haven't seen much impact on other widgets.

The separator bar issue is actually under the windowing system's (i.e., Windows, KDE, Gnome) control. If, for example, you go change the underlying display control (in Windows go to the 'Appearance' tab in the 'Display Properties' group - accessed via a right-click on the desktop) this will affect the window's borders along with the separator bar. Like {NULE}, I haven't found a way to override that behavior.


Good luck. And if you do solve the separator bar problem, please share it with us.


Pat

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found