Federico Suarez wrote:
Ok, my first question is how to make scrollbars to work?? my code is:
...
m_configure(-yscrollcommand=>['set',$srl_y],-xscrollcommand=>['set',$srl_x]);
but I always get a message saying:
Error: wrong # args: should be "set varName ?newValue?"
and the Details say: while executing "set .f2.s 0 0" (vertical scrolling
command executed by text)
Your yscrollcommand is set up to call 'set $srl_y ...', but you want to
call the 'set' method of $srl_y, so you need to reverse the args above.
I believe the same is true of your scrollbar commands for xview/yview.
Second question: After several tries, I found the Scrolled widget inside
the Tk module, but when trying to run it in the Tkx side:
my $txt = $mw -> new_scrolled('Text',-scrollbars=>"oe") -> g_pack;
I got: invalid command name "scrolled" at ./scrolledtkx.pl line 6.
Again, this works perfectly using the Tk module.
But, is the scrolled widget available for Tkx????? Ok, That's it for
now. I hope someone is able to answer my questions.
I'm not sure which Tkx you are specifically using. The ActivePerl
version has a new_widget__scrolledwindow available if you do:
Tkx::package_require('widget::scrolledwindow');
but it has slightly different options than the Perl/Tk scrolled window.
Regards,
Jeff