Oberbee has asked for the wisdom of the Perl Monks concerning the following question:
Great Omniscient Masters,
I am attempting to create a table of items with a uniform height inside an ROText widget. When attempting to use windowCreate to insert a scrollable ROText description I get this error:
unknown option "-scrollbars" at ...Here is the code in question:
$row0p0 = $top->Label(-text => $cat1, -height =>7, -width => 15, -relief => 'sunken')->grid( $row0p1 = $top->Label(-text => $lb12,-height =>7, -width => 15, -relief => 'sunken'), $row0p2 = $top->ROText(-height =>8, -width => 22, -wrap => 'word', -sc +rollbars => 'oe'), $row0p3 = $top->Button(-text => "Photo"), $row0p4 = $top->Button(-text => "Link")); $row0p2->insert('end', " [long description] "); $top->windowCreate('end', -window => $row0p0); $top->windowCreate('end', -window => $row0p1); $top->windowCreate('end', -window => $row0p2); $top->windowCreate('end', -window => $row0p3); $top->windowCreate('end', -window => $row0p4);
How can I make this ROText widget scrollable?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: -scrollbars is unknown option in windowCreate
by AnomalousMonk (Archbishop) on Jul 15, 2018 at 17:47 UTC | |
|
Re: -scrollbars is unknown option in windowCreate
by Marshall (Canon) on Jul 15, 2018 at 17:42 UTC | |
|
Re: -scrollbars is unknown option in windowCreate
by zentara (Cardinal) on Jul 16, 2018 at 10:01 UTC | |
|
Re: -scrollbars is unknown option in windowCreate
by Oberbee (Novice) on Jul 15, 2018 at 18:01 UTC | |
by AnomalousMonk (Archbishop) on Jul 15, 2018 at 22:25 UTC | |
by Oberbee (Novice) on Jul 16, 2018 at 15:54 UTC |