Search found 4193 matches

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: 208

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: 208

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: 84

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: 130

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...
by PB
Sat Mar 23, 2024 1:39 pm
Forum: C++ Development
Topic: Suggestion to display list of images and text in twitter clone
Replies: 10
Views: 357

Re: Suggestion to display list of images and text in twitter clone

pvn wrote: Sat Mar 23, 2024 10:38 am thanks, but I found a better solution, just detect these 2 events of the wxPanels on the scrolled window
Unfortunately, these may not be always reliable, there is at least one whole thread trying to work around it: viewtopic.php?t=44771
by PB
Sat Mar 23, 2024 7:30 am
Forum: C++ Development
Topic: wxAutomationObject for Excel File Manipulation in C++
Replies: 6
Views: 177

Re: wxAutomationObject for Excel File Manipulation in C++

I would just check code of the samples bundled with wxAutoExcel, to see the difference between using wxAutomationObject directly and using a class-based system, mimicking using VBA as possible with C++. For example, the minimal sample: https://github.com/PBfordev/wxAutoExcel/blob/b02fd0bab4253f23717...
by PB
Fri Mar 22, 2024 9:51 am
Forum: C++ Development
Topic: wxAutomationObject for Excel File Manipulation in C++
Replies: 6
Views: 177

Re: wxAutomationObject for Excel File Manipulation in C++

FWIW, here is code to open an existing Excel file and write into the A1 cell of its first worksheet. The code demonstrates basically everything needed when using wxAutomationObject, but as can be seen, the code is painful to write: I had a good reason to create wxAutoExcel. #include <wx/wx.h> #inclu...
by PB
Fri Mar 22, 2024 8:59 am
Forum: C++ Development
Topic: wxAutomationObject for Excel File Manipulation in C++
Replies: 6
Views: 177

Re: wxAutomationObject for Excel File Manipulation in C++

You need to know the VBA to write the code to do what you need. Or at least have its rudimentary understanding and use Macro Recorder in Excel to produce the code. Then you need to translate VBA to wxAutomationObject calls. There is bundled oleauto sample, showing the basics. If you search this foru...
by PB
Thu Mar 21, 2024 9:15 am
Forum: Compiler / Linking / IDE Related
Topic: Albeit statically linked, dll is missing
Replies: 4
Views: 596

Re: Albeit statically linked, dll is missing

IIRC, the .props file always chooses the DLL wxWidgets build, if available. But maybe that has changed since I tried. EDIT I was right, it still works that way, i.e, when DLLs are found, no more checks are performed: https://github.com/wxWidgets/wxWidgets/blob/2dbe596bade85239dbc890a4bbcde3a3a4418fc...
by PB
Tue Mar 19, 2024 3:45 pm
Forum: C++ Development
Topic: Changing format of LogMessage
Replies: 6
Views: 225

Re: Changing format of LogMessage

Works as expected for me with the GIT master, MSVC, and Windows 10 as well as with wxWidgets 3.2.4, GCC, and Linux Mint: #include <wx/wx.h> class MyFrame: public wxFrame { public: MyFrame(wxWindow* parent = nullptr) : wxFrame(parent, wxID_ANY, "Test") { wxTextCtrl* logCtrl = new wxTextCtrl...
by PB
Tue Mar 19, 2024 10:02 am
Forum: C++ Development
Topic: Suggestion to display list of images and text in twitter clone
Replies: 10
Views: 357

Re: Suggestion to display list of images and text in twitter clone

I agree with doublemax, that for display, a web view should be used. There is nothing even close to HTML flexibility when it comes to displaying rich-formatted, read-only content. IMO, grid-based controls (wxGrid, wxDVC) are ill-suited for this. There is wxHtmlWindow (and wxHtmlListBox) but I would ...
by PB
Mon Mar 18, 2024 9:13 pm
Forum: C++ Development
Topic: Changing format of LogMessage
Replies: 6
Views: 225

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: 247

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: 247

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: 1722

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...