Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a TK Scrolled Tree with, well, scrollbars. It is created thusly ...
$TK{'perltree'}=$TK{'vl'}->Scrolled('Tree', -separator => ':', -background => $COLOR{'white +'}, -font => $FONT{'SAP8BO +LD'}, -exportselection => 1, -selectmode => 'single', -scrollbars => 'ose', -selectforeground => $COLOR{'limeg +reen'}, -selectbackground => $COLOR{'grey' +}, -browsecmd => \&perlTreeSel +ection, -width => 20)->pack(-fi +ll => 'both', -an +chor => 'n', -ex +pand => 1);
Later ... after I populate the tree I want to set the x scrollbar to 75% of it's viewable region and have tried many variations but can't get it to work.
I have tried Subwidget and xview and xviewMoveto all to no success
Nick? Gabor? Japh? Anyone!# Set scroll to 32 $TK{'perltree'}->xview(32); # Focus on the perltree $TK{'perltree'}->update;
A grateful nzsvz9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scrolled Tree scrollbar xview problem
by zentara (Cardinal) on Mar 17, 2017 at 21:10 UTC | |
by LanX (Saint) on Mar 18, 2017 at 11:08 UTC | |
|
Re: Scrolled Tree scrollbar xview problem
by nzsvz9 (Sexton) on Mar 17, 2017 at 19:25 UTC | |
|
Re: Scrolled Tree scrollbar xview problem
by nzsvz9 (Sexton) on Mar 18, 2017 at 11:38 UTC |