Search found 4204 matches

by PB
Sun Apr 14, 2024 8:05 am
Forum: C++ Development
Topic: Making StaticText Wrap
Replies: 1
Views: 121

Re: Making StaticText Wrap

AFAIK, wxStaticText basically does not autowrap. Your code makes would make it even harder, as there are no word boundaries there, only a single "word". I always recommend using read-only wxTextCtrl for this. FWIW, here is some code that shows how to wrap with user code: https://forums.wxw...
by PB
Sat Apr 13, 2024 6:39 am
Forum: C++ Development
Topic: wxMenuBar same white color as ~Windows~ title bar
Replies: 3
Views: 149

Re: wxMenuBar same white color as ~Windows~ title bar

As ONEEYEMAN noted, at least on Windows, the menubar color cannot be set using "normal" API.

FWIW, here is how to do it on Windows with wxWidgets, using a 3rd party code: viewtopic.php?p=213463#p213463
by PB
Fri Apr 12, 2024 5:20 am
Forum: Compiler / Linking / IDE Related
Topic: Compiler error after upgrading to latest minGW
Replies: 7
Views: 197

Re: Compiler error after upgrading to latest minGW

Your topic title does not match the content. Does the error occur when compiling or when running your program? You should always post full logs... Either way, the error is pretty telling, the path is invalid, the part before the space was cut off. You must have set it somewhere either like this or u...
by PB
Thu Apr 11, 2024 6:34 pm
Forum: C++ Development
Topic: Flickering is happening for the listview items
Replies: 10
Views: 241

Re: Flickering is happening for the listview items

First of all: This only works at all because you're under Windows where a generic implementation of wxListCtrl is used. Actually, wxWindows use the native implementation (listview), see the bunch of issues with the control in wx 3.3 MSW dark mode. This makes all attempts drawing over it risky and b...
by PB
Wed Apr 10, 2024 1:09 pm
Forum: C++ Development
Topic: wxwidgets cutoff when mouse hovers over radiobutton
Replies: 1
Views: 98

Re: wxwidgets cutoff when mouse hovers over radiobutton

Do not use hard-coded values for control coordinates and sizes, they are not going to really work and it is going to break sooner or later (e.g., just on DPI change on the same system).

Use sizers instead.
by PB
Tue Apr 09, 2024 5:22 pm
Forum: Compiler / Linking / IDE Related
Topic: Wx-GTK build fails on Cygwin_x64
Replies: 7
Views: 7558

Re: Wx-GTK build fails on Cygwin_x64

tigerbeard wrote: Sat Apr 06, 2024 7:52 pm I am using the same compiler swiches for both.
According to the configure commands you posted, you build the 64-bit version with "--enable-stl". This switch is missing from the 32-bit configure? I have no idea if this is related....
by PB
Mon Apr 08, 2024 8:18 pm
Forum: C++ Development
Topic: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button
Replies: 6
Views: 2231

Re: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button

I can enter 0 directly, which shouldn't be possible. I think wxIntegerValidator only filters out the invalid characters on input (i.e., in wxEVT_CHAR handler) and 0 is not an invalid character for a number. The range check (and thus clamping) happens only when validation is done (e.g., the control ...
by PB
Mon Apr 08, 2024 5:34 am
Forum: C++ Development
Topic: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button
Replies: 6
Views: 2231

Re: wxTextCtrl with wxIntegerValidator<T> gives different result for ENTER and button

Please read the documentation for wxValidators, to learn how they work and how to use them. For example, upon unsuccessful validation, numeric validators force the value to be in the valid range (e.g., here change from 0 to 1). The control is validated (among else) when it loses focus: e.g. here whe...
by PB
Mon Apr 01, 2024 4:38 pm
Forum: Open Discussion
Topic: wxAutoExcel 2.0.0 Installation Process using Visual Studio 2022 - Example
Replies: 5
Views: 96310

Re: wxAutoExcel 2.0.0 Installation Process using Visual Studio 2022 - Example

I am sorry, but if you are not familiar with CMake, you need to learn by yourself. This forum is not for such things. Either set the variable in CMakeGui or pass it to the CMake when configuring, e.g. ( wxAutoExcel_BUILD_SHARED value defaults to that of BUILD_SHARED_LIBS) cmake -G "Visual Studi...
by PB
Mon Apr 01, 2024 1:32 pm
Forum: Open Discussion
Topic: wxAutoExcel 2.0.0 Installation Process using Visual Studio 2022 - Example
Replies: 5
Views: 96310

Re: wxAutoExcel 2.0.0 Installation Process using Visual Studio 2022 - Example

Jame789 wrote: Mon Apr 01, 2024 11:56 am how to create dll file, because using lib will increase the size of exe file.
I believe that the docs explain it pretty clearly. In short, you set CMake variable wxAutoExcel_BUILD_SHARED to ON.
by PB
Sun Mar 31, 2024 7:33 pm
Forum: General Development
Topic: System Requirement
Replies: 1
Views: 3888

Re: System Requirement

DeeJayOne wrote: Sun Mar 31, 2024 5:17 pm Does it mean Windows XP won't be compatible from 3.3 releases ?
Yes, the support is no longer there.

I think it is stated pretty clearly in the text you quoted.
by PB
Tue Mar 26, 2024 3:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Latest wxWidgets in Windows with MinGW64: cannot compile Minimal example.
Replies: 7
Views: 15205

Re: Compiling Latest wxWidgets in Windows with MinGW64: cannot compile Minimal example.

While I was correct in everything, I missed the very obvious main problem, i.e, you not using the "-f makefile.gcc" as pointed out by ONEEYEMAN. Sorry. With your build commands, make just tried to compile minimal.cpp, which of course failed, since the wxWidgets paths were not passed to the...
by PB
Tue Mar 26, 2024 2:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Latest wxWidgets in Windows with MinGW64: cannot compile Minimal example.
Replies: 7
Views: 15205

Re: Compiling Latest wxWidgets in Windows with MinGW64: cannot compile Minimal example.

You need to pass the same build parameters to the samples you used for the library. What is "x86_64-w64-mingw32-g++" doing there were building only the samples? You should also use the same -CFG, otherwise the libraries and build-specific setup.h won't be used (and you should also use the ...
by PB
Mon Mar 25, 2024 9:51 pm
Forum: Platform Related Issues
Topic: wxFileSelectorCombo not displaying File name
Replies: 2
Views: 4197

Re: wxFileSelectorCombo not displaying File name

Disclaimer: I know nothing about Linux and I have never really used it. FWIW, I cannot see a file name input control neither in wxFilePicker in the widgets sample nor in wxFileDialog in the dialogs sample on Linux Mint 21. However, I do not see it either when using LibreOffice open dialog. The input...
by PB
Sun Mar 24, 2024 1:51 pm
Forum: Platform Related Issues
Topic: Display emojis with color in Windows
Replies: 2
Views: 4120

Re: Display emojis with color in Windows

The link above shows a solution using Direct2D. Would that be easily implemented in wxWidgets ? wxWidgets uses native classes wherever possible. Win32 classes use GDI to paint. So, no. Even the custom classes (e.g., wxAUI, wxGrid, wxHtmlWindow, or wxRibbon) implemented entirely in wxWidgets are usu...