Search found 22 matches

by weswitt
Thu Jan 12, 2017 4:26 pm
Forum: C++ Development
Topic: wxStaticLine width
Replies: 6
Views: 560

Re: wxStaticLine width

This is using wxWidgets 3.1 with Gtk2 running on Linux.
by weswitt
Thu Jan 12, 2017 4:25 pm
Forum: C++ Development
Topic: wxStaticLine width
Replies: 6
Views: 560

wxStaticLine width

What is necessary to specify the width of a static line? I have the code below that draws a horizontal line. This works as expected, but I can't seem to find a way to increase the thickness of the line. wxPanel* p = new wxPanel(this, wxID_ANY); wxBoxSizer* b3 = new wxBoxSizer(wxVERTICAL); wxStaticLi...
by weswitt
Sun Jan 01, 2017 3:55 am
Forum: Platform Related Issues
Topic: wxFont on Raspberry Pi
Replies: 2
Views: 608

Re: wxFont on Raspberry Pi

Looks like this is a known issue:

http://trac.wxwidgets.org/ticket/16088
by weswitt
Sun Jan 01, 2017 3:42 am
Forum: Platform Related Issues
Topic: wxFont on Raspberry Pi
Replies: 2
Views: 608

Re: wxFont on Raspberry Pi

Here is some code that repros the problem. If I change the wxStaticText to a wxTextCtrl then the font is displayed correctly. So this looks like a bug in the static text control. This code works correctly on Ubuntu 16.04, but does not work correctly on Raspberry Pi. #include <wx/wx.h> #include <wx/p...
by weswitt
Sat Dec 31, 2016 7:51 pm
Forum: Platform Related Issues
Topic: wxFont on Raspberry Pi
Replies: 2
Views: 608

wxFont on Raspberry Pi

I have a wxWidgets app that I developed on Ubuntu 16.04 and now I am testing on a Raspberry Pi. The app works, but the UI does not display the same. The issue is how the fonts are displayed. I am creating wxFont objects of various sizes, but the fonts are not rendered at the larger sizes. I am using...
by weswitt
Sat Dec 31, 2016 7:34 pm
Forum: C++ Development
Topic: wxString Semantics
Replies: 3
Views: 780

Re: wxString Semantics

Thanks for the help, but this was total operator error on my part.
by weswitt
Thu Dec 29, 2016 10:51 pm
Forum: C++ Development
Topic: wxString Semantics
Replies: 3
Views: 780

wxString Semantics

I'm seeing what looks like strange behavior from the wxString class. This is certainly me not understanding how the class works, so some explanation would be helpful. I'm passing a string to wxStaticText but when the text is displayed it is different. Specifically one thing I see is that "%" charact...