$row0p2 = $top->ROText(-height =>8, -width => 22, -wrap => 'word',
-scrollbars => 'oe')->pack;

will produce a widget with working scrollbars.

I don't have the latest version of Tk (804.034) and my Tk::ROText does not support the  -scrollbars option, so I'm afraid I can't help further with windowCreate.

c:\@Work\Perl\monks>perl -wMstrict -le "use Tk; use Tk::ROText; ;; print 'Perl/Tk version: ', $Tk::VERSION; ;; my $MW = tkinit; ;; my $row0p2 = $MW->ROText(-height =>8, -width => 22, -wrap => 'word', -scrollbars => 'oe')->pack; ;; $row0p2->insert('end', '[ ' . 'long description ' x 80 . ']'); ;; MainLoop; " Perl/Tk version: 804.03 Tk::Error: Can't set -scrollbars to `oe' for Tk::ROText=HASH(0x285580c +): Bad option `-scrollbars' at C:/strawberry/5.14/perl/site/lib/Tk/Configure.pm line 45. at C:/strawberry/5.14/perl/site/lib/Tk/Derived.pm line 294. Tk callback for event Tk callback for . Tk callback for .rotext Tk::Derived::configure at C:/strawberry/5.14/perl/site/lib/Tk/Derived +.pm line 306 Tk::Widget::new at C:/strawberry/5.14/perl/site/lib/Tk/Widget.pm line + 205 Tk::Widget::__ANON__ at C:/strawberry/5.14/perl/site/lib/Tk/Widget.pm + line 256 Can't set -scrollbars to `oe' for Tk::ROText=HASH(0x285580c): Bad opti +on `-scrollbars' at C:/strawberry/5.14/perl/site/lib/Tk/Configure.pm +line 45. at C:/strawberry/5.14/perl/site/lib/Tk/Derived.pm line 294. at C:/strawberry/5.14/perl/site/lib/Tk/Derived.pm line 306.


Give a man a fish:  <%-{-{-{-<


In reply to Re^2: -scrollbars is unknown option in windowCreate by AnomalousMonk
in thread -scrollbars is unknown option in windowCreate by Oberbee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.