Jan Engelhardt
2014-06-09 10:24:50 UTC
Hi,
With wxWidgets 3.0.0 and the following snippet,
---
/* http://inai.de/files/tw.cpp */
#include <wx/wx.h>
class M : public wxFrame {
public: M(void) : wxFrame(NULL, wxID_ANY, "") {
auto hp = new wxBoxSizer(wxHORIZONTAL);
auto tx = new wxStaticText(this, wxID_ANY, "The lazy fox jumps. Def'o!");
tx->SetForegroundColour(*wxBLACK);
tx->SetFont(tx->GetFont().MakeLarger().MakeLarger().MakeBold());
hp->Add(tx);
SetSizer(hp);
hp->SetSizeHints(this);
};};
class A : public wxApp {
public: bool OnInit(void) { (new M)->Show(); return true; };
};
IMPLEMENT_APP(A);
-----
I observe “broken” rendering with the GTK3 backend of wxWidgets. See
Loading Image...
for a screenshot, showing GTK2 backend
(above) and GTK3 (lower window).
With wxWidgets 3.0.0 and the following snippet,
---
/* http://inai.de/files/tw.cpp */
#include <wx/wx.h>
class M : public wxFrame {
public: M(void) : wxFrame(NULL, wxID_ANY, "") {
auto hp = new wxBoxSizer(wxHORIZONTAL);
auto tx = new wxStaticText(this, wxID_ANY, "The lazy fox jumps. Def'o!");
tx->SetForegroundColour(*wxBLACK);
tx->SetFont(tx->GetFont().MakeLarger().MakeLarger().MakeBold());
hp->Add(tx);
SetSizer(hp);
hp->SetSizeHints(this);
};};
class A : public wxApp {
public: bool OnInit(void) { (new M)->Show(); return true; };
};
IMPLEMENT_APP(A);
-----
I observe “broken” rendering with the GTK3 backend of wxWidgets. See
Loading Image...
(above) and GTK3 (lower window).
--
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
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