G'day Janish,

"Could anyone tell me if Perl/Tk allows flexible window re-size or any other option that could help to resolve this?"

The short answer is: Yes.

A longer, and more useful, answer will depend on the geometry manager you're using. Tk provides these geometry managers:

Read the documentation for whichever one you're using. If it turns out that the geometry manager you're currently using doesn't do what you want, pick another one. Tk::pack is probably the best choice but, as you've shown no code, that's just a guess.

In addition, regardless of the size of the monitor, adding sufficient widgets will eventually exceed the available screen real estate. You may need to add scrollbars to various widgets: these can be made optional so that they only appear when needed. Tk::Pane, a scrollable frame widget, may be a better choice than Tk::Frame. Other scrollable widgets may be a better choice than whatever you're currently using.

If the general information I've provided leads to a solution, that's great. If not, you'll need to provide more specific information to get a more specific answer. This should include a short, self-contained example which reproduces your problem: see How do I post a question effectively? for more details about this.

-- Ken


In reply to Re: How to set the MainWindow agile to the context in Perl/Tk by kcott
in thread How to set the MainWindow agile to the context in Perl/Tk by Janish

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.