Hi Monks,

I have RO textarea, where i am placing 4 labels in each row, it looks like below,

---------------------------- |lable1|label2|label3|label4| #Consider this as textarea row, with fo +ur labels. -----------------------------

I am calculating the width of each label according to textarea width, most of the times all labels fits fine in the row, but with changes in screen width, the last label couldn't fit, either it goes on the next line in the textarea, or has space after the label, which looks like below,

----------------------------- |lable1|label2|label3| #Either it goes on the next row OR label4| ----------------------------- ----------------------------- |lable1|label2|label3|label4 <space/s> | #label4 doesn't fit in the r +ow -----------------------------

All i want is consistency while placing the labels in the row in the textarea with different screen width and textarea size. I must be missing some options which is useful for the same. Any suggestion would be helpful.

Thanks

2018-12-21 Athanasius added code tags


In reply to Resize last label in a row according to the textarea width in Tk application. by Anonymous Monk

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.