From: "Beckett Richard-qswi266" <[EMAIL PROTECTED]>

> I have a label and an entry box that I want to be greyed out when a radio
> button is selected. (I can't remove them from the frame, as it buggers up
> the formatting of other itmes.)


It's really quite simple.  Save your reference to the Entry, then use
the -command option for the radiobutton.  e.g.:

my $entry = $mw->Entry(....)->pack(...);

$mw->Radiobutton(-command => sub { $entry->configure(-state =>
'disabled'); }, ...)->pack(...);

If you want the entry's background to turn a specific color when disabled,
look at the supported standard options for the Entry widget.

!c

C. Church
http://www.digitalKOMA.com/church/
http://www.DroneColony.com/



_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to