Search found 42 matches

by thoray
Tue Apr 28, 2020 5:57 pm
Forum: Platform Related Issues
Topic: Blurry text on Mac
Replies: 5
Views: 377

Re: Blurry text on Mac

Try adding:

<key>NSPrincipalClass</key>
<string>NSApplication</string>

into Info.plist. That's supposed to enable retina support. wxWidgets samples do it too, see Info.plist.in.
by thoray
Thu Apr 23, 2020 3:31 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

Why isn't deleting that compatibility section a viable workaround? Intel doesn't seem to support its HD3000 chip in Windows 10 so no fix is going to come from there.
by thoray
Thu Apr 23, 2020 11:24 am
Forum: Platform Related Issues
Topic: wxIconBundle AddIcon() from .icns file? (OSX)
Replies: 0
Views: 302

wxIconBundle AddIcon() from .icns file? (OSX)

Is there a way to fill wxIconBundle from OSX .icns icon set file?
by thoray
Wed Apr 22, 2020 9:15 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

That solved that issue. Based on the link you provided, the cause is likely Intel's gpu driver.

Everything looked right out of the box at HiDPI at the first glance.
by thoray
Wed Apr 22, 2020 8:10 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I built my app's rc file with -DwxUSE_DPI_AWARE_MANIFEST=0 and OpenGL works as normal. Then I change that to -DwxUSE_DPI_AWARE_MANIFEST=2, which adds amd64_dpi_aware_pmv2.manifest, and re-link and run it in Win10 at normal dpi and I get OpenGL 1.1. This might be driver related, I have Intel HD 3000 ...
by thoray
Wed Apr 22, 2020 7:16 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

And I can add to those that with HiDPI manifest enabled OpenGL reports as version 1.1, which is likely Windows software renderer.
by thoray
Wed Apr 22, 2020 6:59 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

HiDPI now working after adding: '-DwxUSE_DPI_AWARE_MANIFEST=2' when compiling my project's Windows .rc file with Mingw's windres and copying in 'include/wx/msw/amd64_dpi_aware_pmv2.manifest' from wxWidgets distribution to 'include/wx/msw' at wx install prefix location. Maybe HiDPI can be enabled som...
by thoray
Wed Apr 22, 2020 3:46 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I haven't enabled anything related specifically. I've no idea what a manifest is or how to enable HiDPI in it. From what I gathered wx should do this automatically now by default since wxUSE_DPI_AWARE_MANIFEST defaults to 2 (use per monitor settings).
by thoray
Wed Apr 22, 2020 3:02 pm
Forum: Platform Related Issues
Topic: HiDPI in Win10 and "fix apps so they're not blurry"
Replies: 21
Views: 1173

Re: HiDPI in Win10 and "fix apps so they're not blurry"

I tried my wx app in Win10 set to scaling factor 125% and title bar font is sharp but everything below that is scaled.

Is there something I need to do to enable HiDPI support? This with the latest wx git master.
by thoray
Wed Apr 08, 2020 3:43 pm
Forum: C++ Development
Topic: wxDataViewCtrl auto size column when collapsing?
Replies: 1
Views: 131

Re: wxDataViewCtrl auto size column when collapsing?

It looks like this is only issue in at least GTK2. In OSX and MSW this works as expected.

So it is likely a bug or a feature so I'm better off asking wx-users or making an issue.
by thoray
Wed Apr 08, 2020 7:55 am
Forum: C++ Development
Topic: wxDataViewCtrl auto size column when collapsing?
Replies: 1
Views: 131

wxDataViewCtrl auto size column when collapsing?

Using wxCOL_WIDTH_AUTOSIZE as width in wxDataViewColumn constructor makes such column to grow in width when expanding items but it doesn't shrink back when collapsing. Can it be made to do that? I was thinking of doing it manually in OnItemCollapsed(wxDataViewEvent& event) but there are issues with ...
by thoray
Sat Mar 14, 2020 3:50 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 10
Views: 1199

Re: User sizable panel?

Now that I have some idea how layout management works in wxWidgets, I managed to fix my minimal sample from 2018: void MyFrame::OnSashDragged(wxSashEvent& event) { wxRect rect = event.GetDragRect(); - std::cout << "new size: " << rect.GetX() << " " << rect.GetY() << std::endl; - // FIXME: This does ...
by thoray
Thu Mar 12, 2020 2:48 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 368

Re: wxListBox too short vertically for all its elements in OSX and GTK2

Ok I'l make a ticket. I tried 3.1.3, for OS X wx was 3.1.3 (I updated my answer above).
by thoray
Thu Mar 12, 2020 2:35 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 368

Re: wxListBox too short vertically for all its elements in OSX and GTK2

The same issue in GTK+3 with unmodified git master. Native OS X Mojave 10.14, wx 3.1.3, Xcode 10.1 / SDK 10.14 minimum version 10.9. Not cross compiling.
by thoray
Thu Mar 12, 2020 12:38 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 368

Re: wxListBox too short vertically for all its elements in OSX and GTK2

Yes, I can reproduce it in the minimal sample: --- minimal.cpp 2020-03-12 14:20:28.886756494 +0200 +++ minimal2.cpp 2020-03-12 14:19:45.362540669 +0200 @@ -178,6 +178,13 @@ CreateStatusBar(2); SetStatusText("Welcome to wxWidgets!"); #endif // wxUSE_STATUSBAR + +wxString strings[9] = {"a", "b", "c", ...