Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: TK/HList and focus

by choroba (Cardinal)
on Nov 26, 2021 at 17:18 UTC ( [id://11139148]=note: print w/replies, xml ) Need Help??


in reply to TK/HList and focus

That's because the label or the button steal the focus from the HList. You can prevent it with
$_->bind('<FocusIn>', sub { $hlist->focus }) for $label, $button;

but it might interfere with how sorting the columns works which you haven't showed.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: TK/HList and focus
by andyok (Novice) on Nov 27, 2021 at 09:26 UTC
    That's brilliant. Thank you very much. Works a treat.

    Andrew

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found