G'day kean,

I have no idea what you mean by "I put 5 or more blanks in front of each row". Tk::messageBox doesn't deal with rows. You've failed to post your code that presumably does use rows in some way.

I have no idea what you mean by "$pad1 -> padx option". Tk::messageBox documentation makes no mention of $pad1 nor does it have a padx option. You've failed to post your code that presumably does use those in some way.

Please read How do I post a question effectively? paying particular attention to what it says about posting your code.

Tk::messageBox provides a quick-and-dirty way to pop-up a message window and get a user response. It has no bells and whistles; it doesn't return a widget you can programmatically interact with. All it provides is six pre-defined sets of buttons, four icons (assuming you want platform independence), and options (each taking a single string) to specify a title, a message and a default button: that's it!

If you want to customise your message windows, you'll need to use something like Tk::Dialog or Tk::DialogBox. With either of those, look at their ADVERTISED WIDGETS sections to see the parts of the widget you can access and configure with your preferences. See Tk::mega - Subwidget for information on how to get such access.

-- Ken


In reply to Re: Tk-messageBox -padx by kcott
in thread Tk-messageBox -padx by kean

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.