modash has asked for the wisdom of the Perl Monks concerning the following question:

Hai... am developing an application in perl tk.. am using place manager as geometry manager, now i want my application screen to fit to any type of screen resolution, my frnd having very small size screen....in that size half of the page is not visible....so i want my application to be fit with all screens...what shall i do.........am having images in my application...

Replies are listed 'Best First'.
Re: perl tk
by zentara (Cardinal) on Feb 23, 2010 at 11:26 UTC
    so i want my application to be fit with all screens...what shall i do.

    Unless you need everything totally visible on a single screen, you could put everything into scrolled Panes, and use the pack geometry manager instead of place. Pack works very well with scrolling and $mw size adjustments.

    That is why pack is the preferred method shown in the books and tutorials out there.


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku
      Thank you....
Re: perl tk
by lamprecht (Friar) on Feb 23, 2010 at 11:16 UTC
    Hi,

    print $mw->maxsize , "\n";

    See Tk::Wm for documentation.

    Cheers, Christoph

    Update: there is also a family of screenxxxxx methods implemented ( and documented ) in Tk::Widget.

      Hey frnd i know that already n i did that too but if i use that minsize it shows only half of my main window and for maxsize it shows some empty white space in different size screens........i want my widgets sizes have to shrink if i minimize it to small screen and it should fit the window correctly whatever the window size.... am having images in my window, that size also have to shrink...like our normal windows application....