Discussion:
[wxGTK] wxStaticText makes the label on several lines if too long
Деян Хаджиев
2014-05-11 21:14:48 UTC
Permalink
Hi,

Since the 3.0.0 version I noticed that some of the wxStaticText widgets
show the text on several lines if the text is longer. I tried it with a
wxStaticText which has enough width to render all the text in single line
in that DC, and even tried to lower the height of the wxStaticText to be
enough for only one line of text. Am I missing something? By the way, this
doesn't happen on wxMSW.

Best regards
Deyan Hadzhiev
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-05-14 15:10:15 UTC
Permalink
On Sun, 11 May 2014 14:14:48 -0700 (PDT) ДеяМ ХаЎжОев wrote:

ДХ> Since the 3.0.0 version I noticed that some of the wxStaticText widgets
ДХ> show the text on several lines if the text is longer. I tried it with a
ДХ> wxStaticText which has enough width to render all the text in single line
ДХ> in that DC,

It shouldn't wrap in this case, i.e. if the control has the size returned
by its GetBestSize() or greater. If you can reproduce this problem with a
control which has enough space in the minimal sample, please open a bug
report on Trac with a patch (please see
http://trac.wxwidgets.org/wiki/HowToSubmitPatches) showing this.

ДХ> and even tried to lower the height of the wxStaticText to be
ДХ> enough for only one line of text. Am I missing something? By the way, this
ДХ> doesn't happen on wxMSW.

This is considered to be a missing feature in wxMSW, not a bug in wxGTK.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...