Cubicsdr: Issues with wxWidgets v3.11

Created on 20 Mar 2018  路  12Comments  路  Source: cjcliffe/CubicSDR

This issue gathers the various problems encountered during the migration to wxWidgets v3.11: (checked when solved)

  • [X] @Magalex2x14 : OS X 10.13.3, wxWidgets 3.1.1 - missing the labels on the buttons below the bookmarks. Same commit but with wxWidgets 3.1.0 - all OK.
  • [X] @parkerlreed : Syntax incompatible with wxWidgets v3.04
  • [X] @Magalex2x14 : OS X 10.13.3, wxWidgets 3.1.1 : improper BookmarkView refresh, forced by re-focus.
  • [X] Windows 10 : very slow, blocking refresh of BookmarkView.
  • [X] Windows 10: Buttons labels are invisible.
bug

All 12 comments

Solutions / Suggestions:

  • @parkerlreed : The minimum requirement is wxWidgets v3.1, so you have to compile it from scratch, see the Wiki. The previous wxWidgets v3.0x syntax compatibility was pure luck, and had to end one day.
  • @Magalex2x14 : Same story here on Windows 10. The custom text button color given from the current theme doesn't work well. I see if I can fix it, or else leaving the default color unchanged would do.

@vsonnier I also noticed that with 3.1.1 when new modem is added, corresponding buttons do not appear (bookmark, start recording, remove active). They appears only after "refocusing" - I have to click into the bookmarks or ranges, then back to the modems.

P.S. Hmmm. On same commit, but with 3.1.0 this issue is also present...

@vsonnier Yeah I got the 3.1.1 installed fine but it had to be compiled which actually took quite a while. Not an issue for me personally but I can see that maybe being an issue when there doesn't appear to be a single distro shipping 3.1+. Appimage is one solution but even that has had issues as of late.

(And by a long compile time it took nearly 8 minutes on a 4 core/8 thread machine running make at -j10. A bit lengthy and would only be longer for somebody running lower hardware)

@parkerlreed It is quite long indeed, but you have only to do it every 2 years given the super-slow wxWidgets release schedule.

I've pushed 1 commit on the master branch, which reverts most of the BookmarkView modifications... The control refresh is really slow here on Windows 10 with v3.1.1 vs 3.1.0, but is hopefully more correct.

Button foreground (i.e text color) has been forced to white (255,255,255) to stand out.

wxgtk v3.1.x is shipped as binary release for Debian, Ubuntu and Fedora : http://codelite.org/LiteEditor/WxWidgets31Binaries

Ahh thanks. Wonder why all the official repos seem to be behind (I guess due to compat with older software)

Hello @Magalex2x14, @parkerlreed and all. I've commited some changes on the master, which I believe fixes the following points:

  • Invisible button labels (Windows, OS-X). I forced them to white instead of using the actual theme color.
  • Slow BookmarkView refresh (Windows). Turns out the UI events were calling themselves back and forth.
  • (Maybe ?) Improper control refresh (OS X). I've restored most of the old BookmarkView control logic, plus added other fixes.

Please tell me how it goes for you.

OS X. Invisible button labels are still invisible (maybe labels must be forced to black? White labels becomes visible when the button is pressed...) In the rest everything seems OK.
cubicsdr v0 2 3 www cubicsdr com 2018-03-24 19-01-04

Thanks @Magalex2x14. Funny thing, colors are exactly inverted on Windows 10:
cropimage

So finally in the last commit I removed the buttons custom colors. Less sexy, but should be OK on all platforms.
What about your UI refreshing problems ?

Everything looks good. I do not see any problems with the UI.

Great ! Thanks for your input, I think we can close this issue then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PaulB47 picture PaulB47  路  5Comments

tkzic picture tkzic  路  4Comments

righthalfplane picture righthalfplane  路  7Comments

leeguang517 picture leeguang517  路  6Comments

ifuchs picture ifuchs  路  3Comments