in reply to Re: Tkx scrolling
in thread Tkx scrolling

Thanks for your answer.

I have since found that

$canvas4->yview('moveto', (.09)); # where a fraction 0 to 1 is used t +o position the cursor

works nicely to do what I want.

I write in linux but the sailing club I write for uses ms windows so I compile it in XP in Virtualbox where the version of Perl requires &subname()

Also for my $i(0..100) {$results[$i] = 2*$i;} is not in the original code. That was just to use in the small demo.

See https://www.youtube.com/watch?v=ezNxXLDAPVY if interested.

2017-10-07 Athanasius added code tags and linkified the web address

Replies are listed 'Best First'.
Re^3: Tkx scrolling
by kcott (Archbishop) on Oct 03, 2017 at 05:02 UTC
    "... ms windows ... XP in Virtualbox where the version of Perl requires &subname()"

    I don't see how WinXP has any bearing on this. I have a very old laptop, that I probably only use a couple of times a year: it runs WinXP and has Perl installed. I've never had any reason to use '&subname()' for any Perl code on that machine.

    I don't see the relevance of mentioning VirtualBox. I've certainly run Perl code under VirtualBox/WinXP for cross-platform testing purposes in the past: again, I've never had any reason to use '&subname()'.

    What version of Perl are you running that you think requires '&subname()'?

    If you run the following, do you get the the same result that I show?

    $ perl -le 'sub test { 42 } print test(); print &test()' 42 42

    — Ken

    A reply falls below the community's threshold of quality. You may see it by logging in.