Adjusting cells height per row and, thus, simulating a table isn't too difficult, but perhaps what follows has its own hidden drawbacks. Thanks for reminding about Prima and GUIs in general, nice time it was.

use strict; use warnings; use feature 'say'; use Prima qw(Application Label InputLine); # use Prima::Stress; my $main = Prima::MainWindow-> create( text => 'Configuration', backColor => cl::White, menuItems => [ ['~File' => [['~Quit' => 'Ctrl+Q', '^Q', sub { $::application->close } ], ], ], ] ); $main-> hide; my $table = $main-> insert( Widget => pack => { side => 'top' }, ); my @cols = map $table-> insert( Widget => pack => { side => 'left', anchor => 'n' }, ), 0 .. 1; # let's pretend columns do have different scale $cols[ 1 ]-> font({ size => 5 + $cols[ 0 ]-> font-> size }); for ( 0 .. 9 ) { my $label = $cols[0]-> insert( Label => text => substr( 'Label 1234567890', 0, 7 + $_ ) . ': ', pack => { side => 'top', anchor => 'e' }, ); my $input = $cols[1]-> insert( InputLine => text => '12345', pack => { side => 'top' }, ); my $h_L = $cols[0]-> height; my $h_IL = $cols[1]-> height; if ( $h_L > $h_IL ) { $input-> pack( pady => $h_L - $h_IL ) } else { $label-> pack( pady => $h_IL - $h_L ) } } $main-> show; Prima-> run;

In reply to Re: Prima: How to get a "table" layout? by Anonymous Monk
in thread Prima: How to get a "table" layout? by haj

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.