Search found 4193 matches

by PB
Wed Mar 13, 2024 5:50 pm
Forum: C++ Development
Topic: XRCCTRL anomaly?
Replies: 10
Views: 248

Re: XRCCTRL anomaly?

the sample is irrelevant - it doesn't contain XRCCTRL for a menubar, nor indeed for a toolbar. As I explained, XRCCTRL cannot work for wxMenuBar. XRCCTRL uses FindWindow(), but FindWindow() will not find wxMenuBar, since it is not a child of a wxFrame (i.e., never returned in its GetChildren() list...
by PB
Wed Mar 13, 2024 1:25 pm
Forum: Compiler / Linking / IDE Related
Topic: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiRK7wx
Replies: 11
Views: 2152

Re: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiR

What is this supposed to mean #include FindOpenSSL #include FindCURL #include FindwxWidgets Please read the CMake and wxWidgets docs, to see how to use CMake in general and libraries there. For example with wxWidgets, you should check https://docs.wxwidgets.org/stable/overview_cmake.html#cmake_apps ...
by PB
Wed Mar 13, 2024 1:12 pm
Forum: C++ Development
Topic: XRCCTRL anomaly?
Replies: 10
Views: 248

Re: XRCCTRL anomaly?

I am not familiaar with wxXRC but I wonder how could you even compile XRCCTRL(wxToolBar,"m_toolBar") XRCCTRL(wxMenuBar,"m_menubar") when XRCCTRL macro is defined as #define XRCCTRL(window, id, type) \ (wxStaticCast((window).FindWindow(XRCID(id)), type)) i.e., takes three argument...
by PB
Wed Mar 13, 2024 12:35 pm
Forum: Compiler / Linking / IDE Related
Topic: It finds libcurl, libssl and libcrypto but undefined reference to ...@CURL_OPENSSL-4
Replies: 2
Views: 140

Re: It finds libcurl, libssl and libcrypto but undefined reference to ...@CURL_OPENSSL-4

I am not using Linux, but out of curiosity, I will ask again. Why not using CMake as intended, i.e., to be portable between platforms and compilers. For example: Using pkgconfig instead of FindOpenSSL and FindCURL or using linker flags in target_link_libraries() instead of library names. I think doi...
by PB
Wed Mar 13, 2024 12:11 pm
Forum: General Development
Topic: wither wxCode?
Replies: 2
Views: 122

Re: wither wxCode?

soundhound wrote: Wed Mar 13, 2024 9:48 am is it dead?
Yes.
by PB
Tue Mar 12, 2024 7:19 pm
Forum: Compiler / Linking / IDE Related
Topic: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiRK7wx
Replies: 11
Views: 2152

Re: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiR

Ah, sorry, I forgot Linux is using wx-config with CMake, which is probably smart enough (unlike the Windows code path in the FindwxWidgets.cmake) to figure out: (a) The correct order of libraries, regardless of the order they are passed to it. (b) To add libraries depending on others, e.g. here xml ...
by PB
Tue Mar 12, 2024 6:21 pm
Forum: Compiler / Linking / IDE Related
Topic: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiRK7wx
Replies: 11
Views: 2152

Re: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiR

Firstly, use the official cmake to build also the samples (wxBUILD_SAMPLES=ALL). Secondly, when using wxWidgets you need to use all necessary libraries and in the correct order. Here probably richtext, html, xml, core, base; and maybe more depending on how did you build wxWidgets. BTW, you should pr...
by PB
Mon Mar 11, 2024 7:51 pm
Forum: C++ Development
Topic: wxBookCtrlBase : how to automatically detect if I switch from a page to a different one?
Replies: 3
Views: 158

Re: wxBookCtrlBase : how to automatically detect if I switch from a page to a different one?

I used `wxBookCtrlBase` to create different pages. You probably did not: The class is abstract and cannot be instantiated. To tell which page is currently selected, you just want to call GetSelection() or GetCurrentPage(). But I need something more basic: just to automatically detect if / when I ch...
by PB
Fri Mar 08, 2024 9:01 pm
Forum: Platform Related Issues
Topic: wxRichToolTip not clearing in RHEL Linux 9.2
Replies: 5
Views: 238

Re: wxRichToolTip not clearing in RHEL Linux 9.2

gabello, you create the tool tip on the heap, the docs and the sample create it on the stack. Who deletes tip (and when)? EDIT Running this code on GTK 3 and MSW, there is observable difference #include <wx/wx.h> #include <wx/richtooltip.h> class MyDialog : public wxDialog { public: MyDialog(wxWindo...
by PB
Fri Mar 08, 2024 5:35 pm
Forum: Platform Related Issues
Topic: wxRichToolTip not clearing in RHEL Linux 9.2
Replies: 5
Views: 238

Re: wxRichToolTip not clearing in RHEL Linux 9.2

I would try skipping the event first, IMO should be always done for this kind of event, to allow the standard mouse event processing.

If that did not help, I would use CallAfter(), i.e., not do all that stuff (creating and setting the tooltip) in this kind of a handler but using CallAfter() for it.
by PB
Fri Mar 08, 2024 6:40 am
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1962

Re: Partial background color

I'm of the opinion that this is a bug. But whether it gets treated as such doesn't matter anymore. I fixed it with a workaround. You mean a bug in your code somewhere (e.g., the values vector having less than 7 items), causing undefined behavior and thus somehow affecting the controls, right? I fin...
by PB
Wed Mar 06, 2024 6:47 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1962

Re: Partial background color

Slyde wrote: Wed Mar 06, 2024 3:57 pm My box dual-boots to either Win X or Mint 21.3.
If "Win X" is Windows 10, can you reproduce it there, to rule out a platform- or configuration-specific issue?

As I said, I would just start commenting out the code until it starts working or I realize what I do wrong.
by PB
Wed Mar 06, 2024 3:11 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1962

Re: Partial background color

I can't see anything wrong/odd in your code. I have tried a more realistic example (text controls placed on panel, changing value and fg and bg colors at runtime), still works. #include <wx/wx.h> #include <array> class MyFrame : public wxFrame { public: MyFrame(wxWindow* parent = nullptr) : wxFrame(...
by PB
Tue Mar 05, 2024 6:48 pm
Forum: C++ Development
Topic: Partial background color
Replies: 14
Views: 1962

Re: Partial background color

This is odd, calling SetBackgroundColour() seems to work for me both on MSW and GTK3 (wxWidgets 3.2.4, Mint 21.2 Cinnamon, Runtime version of toolkit used is 3.24, Compile-time GTK+ version is 3.24.33.): wx-textctrl.png #include <wx/wx.h> class MyFrame : public wxFrame { public: MyFrame(wxWindow* pa...
by PB
Tue Mar 05, 2024 11:15 am
Forum: Compiler / Linking / IDE Related
Topic: AuroraMon - how to set up development environment for this application
Replies: 9
Views: 1033

Re: AuroraMon - how to set up development environment for this application

I guess I deleted my test repo but FWIW, here is nbl1268's GitHub repo (seems to include my build-fixes): https://github.com/nbl1268/auroramon

But perhaps there are better solutions then to attempt to revive this project (there appears to be bunch of them just on GitHub)...