in reply to Re: wxPerl behavior on Win32
in thread wxPerl behavior on Win32

>>> Why? Please explain

it wasn't pleasant to me that near widgets a background light, and primary color of a frame - dark

and so was only under windows

Replies are listed 'Best First'.
Re^3: wxPerl behavior on Win32
by Anonymous Monk on Oct 28, 2014 at 21:20 UTC

    it wasn't pleasant to me that near widgets a background light, and primary color of a frame - dark

    and so was only under windows

    FWIW, I usually solve that problem by making your "$frame" a wxPanel

    The background ends up being the usual panel light grey of wxSYS_COLOUR_MENU /
    #D4D0C8
    instead of the darker frame/MDI "grey" of wxSYS_COLOUR_APPWORKSPACE
    #D4D0C8

      >> FWIW, I usually solve that problem by making your "$frame" a wxPanel


      this is complete solution!
      my $bigbutton = Wx::Button->new( $frame, 1, 'Вып&#10 +86;лнить расч&# +1077;т', [-1,-1], [-1,-1]); my $mass_label = Wx::StaticText->new($frame, 2, 'Ваш + вес:',[-1,-1], [-1,-1]); my $drink_label = Wx::StaticText->new($frame, 4, 'Пр&#1077 +;дпочитаем&#109 +9;й напиток:',[-1,-1] +, [-1,-1]); my $mass_entry = Wx::TextCtrl->new($frame, 3, '',[-1,-1], [-1,-1]);

      no wxPanel needed! Now my code works equally on all platforms! THX, Anonymous Monk