![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: How to scroll MainWindow , consists of many framesby choroba (Cardinal) |
on Apr 30, 2020 at 11:56 UTC ( #11116272=note: print w/replies, xml ) | Need Help?? |
I guess you're using Tk. To add scrollbars, use the Tk::Scrolled. For example, you can create a top scrolled frame:
Note that my example is runable as is, while yours isn't (I had to guess the format of the array values, etc.) Also, adding a space here or there improves readability. The first argument of split is a regex or a space. Also, I prefer single quotes for strings that don't interpolate anything, and no quotes for strings that only interpolate a single variable. Update: The array is populated wrongly. See Lotus1's reply for a fix.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|