http://www.perlmonks.org?node_id=997311


in reply to SOLVED - TK: How to change color of readonly BrowseEntry

Try Tk::JBrowseEntry?
  • Comment on Re: TK: How to change color of readonly BrowseEntry

Replies are listed 'Best First'.
Re^2: TK: How to change color of readonly BrowseEntry
by mrider (Beadle) on Oct 04, 2012 at 20:07 UTC
    I'll give it a shot. Thanks!

      Actually, I got a clue how to do this reading the source code for JBrowseEntry:

      my $dd = $mw->BrowseEntry( -label => 'Chooser', -variable => \$dd_value, -state => 'readonly' -disabledforeground => '#000000', -disabledbackground => '#FFFFFF', )->pack();
        Hmm, if that was it, for future development try the diagnostical Tk::ObjScanner and Tk::WidgetDump
        perl -MTk -MTk::ObjScanner -MTk::WidgetDump -e " $mw = tkinit; $p = +$mw->Scrolled(qw/ Text / )->pack; $mw->WidgetDump; Tk::ObjScanner::sc +an_object( $p ); MainLoop; "