Can someone shed some lights on with my problem as title? I have both text and entry widgets within the form I created, but somehow I wish if I could do something such as for some of the text and entry widgets, I'll place the "" wording in it and if the user want to use that entry, they can just simply mouse click on the column and the "" wordings will automatically clear. May I know how to do that? Here is the code that I have without the mouse click to clear feature. Thanks.
#This section apply text widget.
$mwf->Label(-text => 'Waiver',
-justify => 'left'
)->grid(-sticky => 'w', -column => 0, -row => 8);
my $scrollbar = $mwf->Scrollbar()
->grid( -sticky => 'ns',-column=>2, -row => 8);
my $waiver = $mwf->Text(-height => 5,
-width => 100,
-background => "white",
-wrap => 'word',
-yscrollcommand => ['set' => $scrollbar],
)->grid(-sticky => 'w', -column => 1, -row => 8);
#This section apply entry widget.
$mwf->Label(-text => 'Exclude View',
-justify => 'left'
)->grid(-sticky => 'w', -column => 0, -row => 10);
my $exclude = $mwf->Entry(-width => 100,
-background => "white",
)->grid(-sticky => 'w', -column => 1, -row => 10);
push @entries, $exclude ;
$exclude -> insert('end', '<optional>') ;