Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: perl/Tk scrollbar aligning

by TomK32 (Monk)
on Nov 30, 2001 at 20:51 UTC ( [id://128657]=note: print w/replies, xml ) Need Help??


in reply to Re: perl/Tk scrollbar aligning
in thread perl/Tk scrollbar aligning

I think you meant
$listbox->yview(3);
for scrolling down the list, xview() would move it left and it accepts only a integer (btw, it starts with 0 of course)
-- package Lizard::King; sub can { do { 'anything'} };

Replies are listed 'Best First'.
Re: Re: Re: perl/Tk scrollbar aligning
by kevin_i_orourke (Friar) on Dec 03, 2001 at 16:35 UTC

    No, I meant $tally_scroll->Subwidget("scrolled")->xview(moveto => 1), to scroll the listbox as far right as possible

    perldoc Tk::Listbox:

    *$listbox*->xview(moveto => *fraction*) Adjusts the view in the window so that *fraction* of the total width of the listbox text is off-screen to the left. *fraction* must be a fraction between 0 and 1.

    Kevin O'Rourke

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-18 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found