Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • clipped text in staticboxsizer?

    1 answers - 824 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Robin Dunn wrote:
    What did it do before if the label was too long, just let it overflow
    the static box? If so then I think that the current behavior is better.
    Before it expanded the box to fit the label. I think that is the
    correct behavior. I'm constructing these on the fly so it isn't obvious
    how I can compute the size required for the spacer to assure the box is
    big enough for the label.
    I guess I can figure out what font is being used for the label (how?),
    and get the length on the screen of the text, and set a minimum size
    The current behavior seems wrong to me.
    gb
    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.1 | | 701 bytes | |

    Gary Bishop wrote:
    Robin Dunn wrote:

    >What did it do before if the label was too long, just let it overflow
    >the static box? If so then I think that the current behavior is better.


    Before it expanded the box to fit the label. I think that is the correct
    behavior.

    The best size of the staticbox does still take into account the size of
    the label, but I don't think that the wx.StaticBoxSizer has ever checked
    the best size of the staticbox, just the items added to the sizer to be
    contained within the box.

    Ah, I see from your next message you've found a workaround. I was going
    to suggest something like that.

Re: clipped text in staticboxsizer?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Python"

EMSDN.COM