Search found 4182 matches

by PB
Mon Mar 18, 2024 9:13 pm
Forum: C++ Development
Topic: Changing format of LogMessage
Replies: 2
Views: 24

Re: Changing format of LogMessage

If all you need is to change the timestamp format for all log messages, I think it would be easiest to call wxLog::SetTimestamp(): https://docs.wxwidgets.org/stable/class ... 32d75cf5c0
by PB
Mon Mar 18, 2024 8:05 pm
Forum: C++ Development
Topic: StaticBoxSizer hidden name
Replies: 7
Views: 118

Re: StaticBoxSizer hidden name

bakl wrote: Mon Mar 18, 2024 6:37 pm Sorry I forgot the platform. I am on Arch Linux
I can reproduce it on Linux Mint 21.3 Cinnamon, wxWidgets 3.2.4.

IMO, it should behave the same as on Windows, i.e., (if possible) the statbox sized to fit its label. I would report it as a bug.
by PB
Mon Mar 18, 2024 4:11 pm
Forum: C++ Development
Topic: StaticBoxSizer hidden name
Replies: 7
Views: 118

Re: StaticBoxSizer hidden name

FWIW, it works for me with the master on Windows 10 (DPI 100%, 125%, 225%): wx-statbox-minimal.png Tested also with 3.2.4 with no issues there as well. BTW, I think your patch file is incomplete, it seems to miss the path information and should look something like diff --git a/samples/minimal/minima...
by PB
Sun Mar 17, 2024 6:38 pm
Forum: C++ Development
Topic: Passing wxString as buffer pointer
Replies: 5
Views: 324

Re: Passing wxString as buffer pointer

PB, Yes, I do have a wxWindow/wxControl. Then I do not understand why are you not using the method I suggested? What code example? I don't see any code in your reply. That is understandable, since I did not post any. I obviously meant the one in the relevant docs, which I assumed you would check if...
by PB
Sun Mar 17, 2024 6:11 pm
Forum: C++ Development
Topic: Passing wxString as buffer pointer
Replies: 5
Views: 324

Re: Passing wxString as buffer pointer

ONEEYEMAN wrote: Sun Mar 17, 2024 6:03 pm PB,
Yes, I do (at least according to MSDN).
MSDN has nothing to do with that. I assumed, you asking on wxWidgets instead of General section, that you have a wxWindow. Do you not?
ONEEYEMAN wrote: Sun Mar 17, 2024 6:03 pm And how do I use wxStringBuffer?
What exactly did you not understand in the provided code example?
by PB
Sun Mar 17, 2024 5:53 pm
Forum: C++ Development
Topic: Passing wxString as buffer pointer
Replies: 5
Views: 324

Re: Passing wxString as buffer pointer

Do you really have to: wxWindow::GetLabel() does not work? If it does not and since wxString::(Un)GetWriteBuf() is deprecated, you probably ought to use wxStringBuffer. If you really must use WM_GETTEXT (cannot use ::GetWindowText()), take a look at the macro signature, to make sure that you are usi...
by PB
Sun Mar 17, 2024 3:32 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

Hmmm, I missed that. And what is PF? Sorry, I thought it was obvious from the context, I meant the Program Files folder, whichever variant it is I fiddled with a bunch of the generators. I remember getting errors with MINGW but didn’t peruse them. I also got errors in the VS community 17 but didn’t...
by PB
Sat Mar 16, 2024 8:47 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

I showed how to set the install directory in one of my previous posts (via CMAKE_INSTALL_PREFIX). For some reason, CMake always defaults to PF, which is normally not writable.

BTW, what made you chose the MSYS makefiles generator over the MiNGW one?
by PB
Fri Mar 15, 2024 9:57 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

Sorry, but I did not find the cmake output much useful. I'd rather you: 1. Tell us how you built wxWidgets, i.e., the CMake commands 2. Tell us if you installed them. 3. Tell us if you set WXWIN windows environment variable. 4. Post your cmakelists.txt. I also never saw the need to modify wxWidgets_...
by PB
Fri Mar 15, 2024 6:45 am
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

What I am having trouble wrapping my head around is that if I have the include files and the libs with the appropriate path variables set why can't I build against that? I should be able to hand whatever make facility the preprocessor variables necessary and build. As I said before, of course you c...
by PB
Thu Mar 14, 2024 10:02 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

I’m not ignoring what you are saying. I just disagree with what you are saying as a solution to my issue. What I am saying is not my opinion, I am just repeating the official docs and, among else, myself have built many versions of wxWidgets in basically any possible configuration, using all three ...
by PB
Thu Mar 14, 2024 8:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Visual C++ IDE build error messages: 'static_cast': cannot convert from 'const _T' to 'wchar_t *'
Replies: 6
Views: 183

Re: Visual C++ IDE build error messages: 'static_cast': cannot convert from 'const _T' to 'wchar_t *'

I have also just tested building wxWidgets 3.2.4 with MSVS 2022 Community 17.9.3 (I have used many older v17 versions in the past) using the provided wx_vc17.sln. Tested only x64 but in all four combinations of Debug/Release and Static/Dynamic, all built without any issues. I did not use Build All b...
by PB
Thu Mar 14, 2024 5:25 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

I'm sure I'm missing something. Yes, you are not RTFM (you say you are old so I say what we old people used to). There is generally nothing Windows specific and whether the binaries are prebuilt does not matter, as long as they are binary compatible with your compiler and you tell cmake where to fi...
by PB
Thu Mar 14, 2024 1:23 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 755

Re: wxGrid object's ref count assertion failed in multi-threading

I definitely have to paint in threads because I visualize real time data from multiple sources. I have no idea how you made the connection between these four things (painting, threading, real-time data, multiple sources) but your statement is very obviously not true. Regardless, you are doing somet...
by PB
Thu Mar 14, 2024 1:14 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 521

Re: moving to MS Win

I downloaded the wxwidgets binaries for the win build. I’m not building the wxwidgets. I build sample as I want them at least that’s what I do on Linux. I have a simple CMakeLists.txt file I drop into the sample of interest directory, mod the filename and exe name. That was a crucial information yo...