Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Scrolled Tree scrollbar xview problem

by nzsvz9 (Sexton)
on Mar 17, 2017 at 19:25 UTC ( [id://1185076]=note: print w/replies, xml ) Need Help??


in reply to Scrolled Tree scrollbar xview problem

I finally logged in ... (facepalm) ... in case the question comes up, $TK{'vl'} is a Tk::Frame which is "view left" or 'vl' in the Tk GUI I'm building. Or trying to build. Or failing at. It depends on your point of view, and visual acuity.

# Create a left hand view frame in the workspace frame - for the tree $TK{'vl'}=$TK{'ws'}->Frame()->pack(-side => 'left', -anchor => 'n', -expand => 0, -fill => 'both');

Similarly 'ws' is a workspace Tk::Frame inside the main window. But that's probably not important.

I create a button to report the tree xview value and just was lost even more ...

my @pos=$TK{'perltree'}->xview(); my $pos=shift(@pos); print 'xview=' . join(",", $pos) . "\n";

Thanks from nzsvz9

Log In?
Username:
Password:

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

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

    No recent polls found