Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Tk MainWindow resizing

by Util (Priest)
on Jun 23, 2002 at 21:41 UTC ( [id://176634]=note: print w/replies, xml ) Need Help??


in reply to A node misplaced. . .
in thread Some beginning Tk help

A side thought: since there's usually a preview button around when one is submitting a node for the first time, would such a button be desirable when editing a node?
I have wished that it were so, but I have searched for discussions about this, and found much disagreement. As a workaround, you can use your scratchpad to preview anything you care to write.

Update: ... and came across one final question.
In future posts, please consider making this kind of update into a separate reply instead. It will be easier for other monks to follow the conversation. As it is, no one can tell for sure that my second reply was to the pre-update version of your reply, and my third reply was to the post-update version of your reply. It is clear to you and I today, but it will be less clear to future monks searching for enlightenment.

...have the code run, and come up simply as a rectangle that displays all the information (buttons) in one window.
The window manager should do this automatically. After a good night's sleep, I see that I missed something in my last example. Now that we are not displaying all 30 button sets at once, we no longer need the scrolling, and so $pane can be removed, allowing $frame to become a child of $mw. After this change, the application starts up with the correct size. In diff notation:

-my $pane = $mw->Scrolled(qw/Pane -scrollbars osow/)->pack( - -expand => 'yes', - -fill => 'both', -); -my $frame = $pane->Frame->pack(); +my $frame = $mw->Frame->pack();
Does this do what you wanted?

Replies are listed 'Best First'.
Re: Tk MainWindow resizing
by dimmesdale (Friar) on Jun 23, 2002 at 23:48 UTC
    Perfect.

    (I skipped right over the 'Comment on ...' link, b/c I was looking for a 'Reply to' link like on all the replies; I assume that's what you were talking about {Util})

    It works for my purposes here, but is there a way to make it any size you want? It seems somewhat limiting if there isn't (but maybe it's just me, and the need doesn't come up often enough).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://176634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found