Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need 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?

In reply to Tk MainWindow resizing by Util
in thread Some beginning Tk help by dimmesdale

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-18 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found