tevlin has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I've installed (cygwin) Tk 804.028-1.
Now I never get any scrollbars displayed.

The following simple example works on works on Solaris Tk 5.00404 (I see a scrollbar).

On Cygwin Tk 804.028-1, no scrollbar, never.

use Tk; $top = MainWindow->new(); $lb = $top->Scrolled('Listbox', -scrollbars=>'e', -label=>'Test')->pa +ck(-side=>left, -expand=>1, -fill=>'both'); foreach $line (1..50) {$lb->insert('end', "This is line $line")} MainLoop();
Any help?

Replies are listed 'Best First'.
Re: Missing Scrollbars in Tk 804.028-1
by Anonymous Monk on Nov 24, 2009 at 07:08 UTC
    Try upgrading. I see scrollbars with Tk: 804.028501 on windows.
Re: Missing Scrollbars in Tk 804.028-1
by biohisham (Priest) on Nov 24, 2009 at 11:33 UTC
    Does the program compile and the list gets populated? you may need to rule out if the Tk version is compatible to the perl compiler version, see the ptk faqs list.


    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.
      you may need to rule out if the Tk version is compatible to the perl compiler version, see the ptk faqs list.

      Nope. perl/Tk doesn't depend on external Tk libraries. And that faq you linked is from 1997 :)