Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: wxPerl behavior on Win32

by jmlynesjr (Deacon)
on Oct 27, 2014 at 20:32 UTC ( [id://1105202]=note: print w/replies, xml ) Need Help??


in reply to wxPerl behavior on Win32

Have you tried   $frame->SetBackgroundColour(wxRED);?

From the wxBook, "Because wxFrame derives from wxTopLevelWindow and wxWindow, please also refer to the member functions for these classes".

Stock color objects are wxBLACK, wxWHITE, wxRED, wxBLUE, wxGREEN, wxCYAN, and wxLIGHT_GREY. There are also many available standard colors, too many to type here, accessed by:   Wx::Colour->new("yellow"); or Wx::Colour->newRGB(#,#,#);

James

There's never enough time to do it right, but always enough time to do it over...

Replies are listed 'Best First'.
Re^2: wxPerl behavior on Win32
by solomon243 (Novice) on Oct 28, 2014 at 19:26 UTC
    this work well:


    $frame->SetBackgroundColour(Wx::SystemSettings::GetSystemColour(wxSYS_ +COLOUR_WINDOW));



    now there are no dark areas around widgets. almost.

      Great! Glad you found a fix.

      James

      There's never enough time to do it right, but always enough time to do it over...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found