in reply to Re: Double-clicking a HList Entry
in thread Double-clicking a HList Entry
Thank you for your reply
The supported options for -selectmode are: single, browse, multiple and extended
I tried none just to see if it made a difference ... which it didn't.
I've also tried binding to double-left-click with something like:
$hlist -> bind("<Double-Button-1>" => \&DoubleClicked); sub DoubleClicked { my @selected = $hlist->selectionGet(); my $entry = $selected[0]; print "DoubleClicked: $entry\n"; $hlist->hide('entry', $entry); $mw->update(); sleep(1); $hlist->show('entry', $entry); }
The sleep was me just doing a simple experiment to see what would happen (I know Callbacks should complete as quickly as possible).
I've also noticed that:
My next attempt is to delete the HList and re-populate ... which seems a bit extreme.
|
|---|