Can I control the width of tk_messageBox?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hans

    Can I control the width of tk_messageBox?

    Hi, I have below tk_messagecode:
    tk_messageBox -icon info -type ok -title "About Test Item "
    -parent $w -message \
    "preddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddd_test"

    When I run it it always was displayed in multiple lines. It seems the
    width of the message box cannot be controled.
    Can I control it to use my prefer width and don't get carriage return
    automatically?

    Thanks in advance.


    Hans Yin

  • Kimmo Laine

    #2
    Re: Can I control the width of tk_messageBox?

    "Hans" <hansyin@gmail. com> wrote in message
    news:1148424868 .742104.9760@y4 3g2000cwc.googl egroups.com...[color=blue]
    > Hi, I have below tk_messagecode:
    > tk_messageBox -icon info -type ok -title "About Test Item "
    > -parent $w -message \
    > "preddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddddddddddd ddddddd_test"
    >
    > When I run it it always was displayed in multiple lines. It seems the
    > width of the message box cannot be controled.
    > Can I control it to use my prefer width and don't get carriage return
    > automatically?[/color]


    This is a php newsgroup, not Tcl/Tk. I suggest you ask this in an
    appropriate newsgroup, comp.lang.tcl for example. HTH.

    --
    "ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
    spam@outolempi. net | Gedoon-S @ IRCnet | rot13(xvzzb@bhg byrzcv.arg)


    Comment

    Working...