Search found 3826 matches

by DavidHart
Fri Nov 15, 2019 8:53 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and Expander Columns?
Replies: 2
Views: 18

Re: wxDataViewListCtrl and Expander Columns?

Hi,

I've little wxDVC experience, so I'll leave a proper answer to those who know more. But:

There is a custom control that sounds like what you describe in eranif's wxCustomControls.

Regards,

David
by DavidHart
Wed Nov 13, 2019 3:28 pm
Forum: Platform Related Issues
Topic: wxGTK Accelerators
Replies: 12
Views: 140

Re: wxGTK Accelerators

It would be interesting to override wxApp::FilterEvent and add some log code. You might find the event (presumably there is one in this situation) is fired but doesn't reach the frame. Shall i report this as a bug? IMO only if you can create a reproducer; preferably as a patch to one of the wx sampl...
by DavidHart
Wed Nov 13, 2019 11:48 am
Forum: Platform Related Issues
Topic: How to react to a USB stick plugged? Or how to check if a file exists in /dev/?
Replies: 5
Views: 104

Re: How to react to a USB stick plugged? Or how to check if a file exists in /dev/?

Hi,

In my code I periodically check /sys/bus/scsi/devices. However that was written >10 years ago and, while it still works, I'm sure that nowadays there are better ways; one of which is probably libusb, which someone on #wxwidgets mentioned recently.

Regards,

David
by DavidHart
Mon Nov 11, 2019 11:18 am
Forum: Platform Related Issues
Topic: wxGTK Accelerators
Replies: 12
Views: 140

Re: wxGTK Accelerators

Hi, If the same accelerators, menu-entries etc as work in the samples, fail in your code, presumably the problem lies in how the events are handled. First, I suggest you try F1 the 'minimal' sample as that's far simpler than 'dialogs'. If that works but the same accelerators fail in your code, look ...
by DavidHart
Mon Nov 04, 2019 10:32 am
Forum: Compiler / Linking / IDE Related
Topic: Terminal gets a different version of wxwidgets than IDE's compiler
Replies: 2
Views: 61

Re: Terminal gets a different version of wxwidgets than IDE's compiler

Hi, (I presume your terminal is 'clean', and not one where you have previously prepended to its PATH e.g. PATH=/path/to/wx3.1.3/:$PATH. Similarly that you don't have such a line in your ~/.bashrc or similar.) CodeLite lets you set a particular wx version in several ways: 1) You can point directly at...
by DavidHart
Thu Oct 31, 2019 6:12 pm
Forum: Announcements and Discoveries
Topic: wxGTK 3.0 and 3.1 debs and rpms available
Replies: 7
Views: 7877

Re: wxGTK 3.0 and 3.1 debs and rpms available

wx3.1.3 has now been released. As wx3.1 is a development branch distros are very unlikely to package it, so I've again created packages for current and recent versions of the major distros. For debian buster, and ubuntu bionic, disco and eoan there are repositories. There are rpms for fedora 30 and ...
by DavidHart
Thu Oct 31, 2019 10:35 am
Forum: Compiler / Linking / IDE Related
Topic: [Not Solved - Not worth chasing. Simply using shared libs and moving on: Repeatable wxWidgets 3.1.3 issue...
Replies: 5
Views: 163

Re: [Not Solved - Not worth chasing. Simply using shared libs and moving on: Repeatable wxWidgets 3.1.3 issue...

Hi, The same issue comes back - "Floating Point Error" and a crash of my app. In the screenshot backtrace, frame 3 is a call to /usr/lib/libwx_base*, an installed wx lib. If that was from your disable-shared version, it was linking wrongly. (IIRC, and it was something I read years ago, if the ?linke...
by DavidHart
Sat Oct 26, 2019 1:57 pm
Forum: C++ Development
Topic: How to play and stop mp3 asynchronously
Replies: 14
Views: 328

Re: How to play and stop mp3 asynchronously

I tried to compile it, but I receive lots of errors: g++ doc_libvlc_wx_player.cpp `wx-config --libs` `wx-config --cxxflags` `pkg-config --cflags gtk+-2.0 libvlc` `pkg-config --libs gtk+-2.0 libvlc` -o wx_player doc_libvlc_wx_player.cpp:14:14: fatal error: gtk/win_gtk.h: No such file or directory Fr...
by DavidHart
Sun Oct 20, 2019 7:27 pm
Forum: Platform Related Issues
Topic: Symbol is not found
Replies: 3
Views: 168

Re: Symbol is not found

Fair enough. In that case this is outside my experience.

However googling for 'linux "undefined symbol" runtime' results in lots of hits e.g. this, and this (do you define a StyleBar in your program?). If those two don't help you, there are lots of others.
by DavidHart
Sun Oct 20, 2019 9:24 am
Forum: Platform Related Issues
Topic: Symbol is not found
Replies: 3
Views: 168

Re: Symbol is not found

Hi, I just tried to add a new dynamic library (.so) to my project. I presume that, by 'dynamic', you mean a non-static library, not one dynamically loaded by dlopen(). If so, then your problem is almost certainly caused by /usr/local/lib64 not being in your runtime library search path. You can prove...
by DavidHart
Thu Oct 17, 2019 1:18 pm
Forum: Platform Related Issues
Topic: wxEVT_SET_FOCUS on Linux
Replies: 6
Views: 276

Re: wxEVT_SET_FOCUS on Linux

If I switch the focus, clicking on the MainFrame and the NewFrame, the OnSetFocus1 runs! Good. The solution is not perfect because it runs three times when I click on NewFrame, and also when I click on the MainFrame I don't know why 3 times, but you can reduce the amount of spam by testing event->G...
by DavidHart
Thu Oct 17, 2019 10:53 am
Forum: Platform Related Issues
Topic: wxEVT_SET_FOCUS on Linux
Replies: 6
Views: 276

Re: wxEVT_SET_FOCUS on Linux

use Bind for the main panel and for a button. The first, the most important for me, doesn't work You mean that the button Bind() does? That, or the textctrl, is what I'd expect to have focus. If you really must use the panel, you could try wxPanel::SetFocusIgnoringChildren. But you should probably ...
by DavidHart
Wed Oct 16, 2019 11:42 am
Forum: Platform Related Issues
Topic: wxEVT_SET_FOCUS on Linux
Replies: 6
Views: 276

Re: wxEVT_SET_FOCUS on Linux

Hi, There are two possible issues here: 1) Focus events are not derived from wxCommandEvent, and so do not propagate to parent controls; at least they aren't supposed to, though nobody seems to have told Windows... So if there are child controls in NewFrame, any focus events they get will not be see...
by DavidHart
Sat Oct 05, 2019 8:37 pm
Forum: Platform Related Issues
Topic: GTK3, wxSearchCtrl border size/offset in toolbar
Replies: 3
Views: 199

Re: GTK3, wxSearchCtrl border size/offset in toolbar

Hi, It's very likely to be a gtk+3 bug; there've been a lot of them. I just tested your minimal diff on a gtk+3 build of git HEAD and get the same result as you. It seems to be toolbar-specific: the same code added to a sizer in the normal way behaved as expected. wxSizer* sizer = new wxBoxSizer(wxH...
by DavidHart
Sat Oct 05, 2019 1:03 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 3
Views: 150

Re: GTK3 / wxStaticText size

Hi, As you say, this sounds very similar to https://trac.wxwidgets.org/ticket/17585 . Did you test using the 'minimal' patch from comment 3 ? I'm using the default GTK 3.22 that comes with Ubuntu 18.04 LTS With which DE, and on X11 or Wayland? but I figures out that the fix was not ported back to th...