Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: SOLVED - TK: How to change color of readonly BrowseEntry

by Sandy (Curate)
on Oct 04, 2012 at 21:45 UTC ( [id://997331]=note: print w/replies, xml ) Need Help??


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

This works on unix and windows
#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::BrowseEntry; my $update = "hello"; my $mw=MainWindow->new(); my $bb = $mw->BrowseEntry( -variable => \$update, -state=>'readonly', -disabledbackground=>'red' )->pack; $bb->insert( 'end', qw(one two three) ); MainLoop;
UPDATE: You found the answer before me.

PS: I got the answer from the CPAN description of Entry (which is a sub-widget of browse entry)

Replies are listed 'Best First'.
Re^2: SOLVED - TK: How to change color of readonly BrowseEntry
by mrider (Beadle) on Oct 04, 2012 at 21:53 UTC
    I got the answer in a very round about way. So your answer is appreciated even though I already had an answer, since I now know how to get the answer. Said another way, you improved my knowledge. Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found