Search found 3087 matches

by PB
Sun Jul 11, 2021 6:14 pm
Forum: General Forum Issues
Topic: Error "The submitted form was invalid"
Replies: 25
Views: 15010

Re: Error "The submitted form was invalid"

Another issue I have been noticing these past few days: Even when I mark all the posts read using Mark forums read link on the main page, the next visit the threads are still shown as unread.

No idea if it is related when this has started happening just recently.
by PB
Sat Jul 10, 2021 5:37 pm
Forum: C++ Development
Topic: wxMemoryDC->SetTextForeground
Replies: 10
Views: 1594

Re: wxMemoryDC->SetTextForeground

I could not use your code verbatim because I use wxMemoryDC * and not wxMemoryDC. Sorry, verbatim means "exactly as it is", so you could use it and I already explained why you should have. What's glaring is the difference in platform level behavior. I am not saying that there are no platform differ...
by PB
Sat Jul 10, 2021 4:20 pm
Forum: C++ Development
Topic: wxMemoryDC->SetTextForeground
Replies: 10
Views: 1594

Re: wxMemoryDC->SetTextForeground

You did not answer any of my questions I believe relevant to the issue nor did you report if running my code verbatim reproduces the issue (if nothing else to make sure that it is not due to a difference in wxWidgets version): Why? Looking at your codes I understand you are new not only to wxWidgets...
by PB
Sat Jul 10, 2021 3:33 pm
Forum: C++ Development
Topic: wxMemoryDC->SetTextForeground
Replies: 10
Views: 1594

Re: wxMemoryDC->SetTextForeground

The observed anomalous behaviour is on Windows 10. I draw to a wxMemoryDC and later blit that to a wxPaintDC. So exactly the same what I showed working in the second code block in my previous post? Can you reproduce the issue with using that code verbatim on your setup? If you cannot you must have ...
by PB
Sat Jul 10, 2021 3:01 pm
Forum: C++ Development
Topic: wxMemoryDC->SetTextForeground
Replies: 10
Views: 1594

Re: wxMemoryDC->SetTextForeground

I cannot confirm this on Win10. I am using GIT master but I am not aware of any code change that could affect this. dc_settextforeground.png #include <wx/wx.h> class MyApp : public wxApp { public: bool OnInit() override { wxFrame* frame = new wxFrame(nullptr, wxID_ANY, "Test"); frame->SetBackgroundC...
by PB
Sat Jul 10, 2021 11:54 am
Forum: Compiler / Linking / IDE Related
Topic: How do I link wxwidgets using dlls?
Replies: 3
Views: 2806

Re: How do I link wxwidgets using dlls?

HansLjy wrote:
Sat Jul 10, 2021 9:52 am
Now I have a gcc_dll directory. What to do next?
Follow the instructions for the build system / IDE you are using. This should be a good start:
https://docs.wxwidgets.org/trunk/plat_m ... build_apps
by PB
Fri Jul 09, 2021 7:11 pm
Forum: Compiler / Linking / IDE Related
Topic: how to build lib or dll for wxmathplot using mingw64 in windows
Replies: 10
Views: 2521

Re: how to build lib or dll for wxmathplot using mingw64 in windows

I setup code::block enviroment such as search path for compiler and linker to wxWidgets include folder and lib/dll folders. I consider this a very bad practice, the library should be set in the project instead of compiler properties? How will you use both Debug and Release builds of wxWidgets? I bu...
by PB
Thu Jul 08, 2021 8:34 am
Forum: General Forum Issues
Topic: Error "The submitted form was invalid"
Replies: 25
Views: 15010

Re: Error "The submitted form was invalid"

As already wrote, clearing cookies fixes the log out issue but I still could not post after a new login.

Happened to me on July 6 again, but I found interesting that while I could not post it seemed a new post from another user appeared - but I just might have missed it.
by PB
Tue Jul 06, 2021 3:14 pm
Forum: C++ Development
Topic: File open not working on MacOs
Replies: 3
Views: 1725

Re: File open not working on MacOs

Regardless of the OS, using just a file name is generally a bad idea, as this depends on the current working directory and is rather brittle. If you do not have a path from the user, you can use wxStandardPaths to obtain a path to a known location: https://docs.wxwidgets.org/trunk/classwx_standard_p...
by PB
Mon Jun 28, 2021 11:02 am
Forum: C++ Development
Topic: wxDataViewListCtrl - Is it possible to hide certain columns?
Replies: 14
Views: 2397

Re: wxDataViewListCtrl - Is it possible to hide certain columns?

apoorv569 wrote:
Mon Jun 28, 2021 10:59 am
I see, is this fix for wx3.0.x or wx3.1.x? I'm currently using wx3.0.5.
The commit says it is in the master. I did not check if it was backported, AFAIK the chance of 3.0.6 being released is not that high anyway.
by PB
Mon Jun 28, 2021 10:39 am
Forum: C++ Development
Topic: Receiving System Video (Hardware) Events?
Replies: 3
Views: 1108

Re: Receiving System Video (Hardware) Events?

FWIW, in my experience it is not sent when a display is turned on/off (it is based on WM_DISPLAYCHANGE ), at least when it does not affect a resolution. EDIT It seems that Windows itself ignores a display (connected to a desktop with two displays) being turned on/off and still behaves as if the disp...
by PB
Mon Jun 28, 2021 7:57 am
Forum: C++ Development
Topic: wxDataViewListCtrl - Is it possible to hide certain columns?
Replies: 14
Views: 2397

Re: wxDataViewListCtrl - Is it possible to hide certain columns?

It does work though, but I'm having a little problem, I have a context menu for the rows as well, when I right click on a column header, and select a item, the column header menu closes, and the row menu opens immediately. Shouldn't the item menu only open on right click? Sounds like this recently ...
by PB
Wed Jun 23, 2021 4:11 pm
Forum: C++ Development
Topic: [wxMSW][3.1.5]: webview and focus
Replies: 2
Views: 1098

Re: [wxMSW][3.1.5]: webview and focus

I know little about web dev but out of curiosity, I tried to take a look at it. It does seem the focus does not behave as expected. When pressing the button, the form input is selected but the cursor is not shown: #include <wx/wx.h> #include <wx/webview.h> const char* HTMLSource = R"(<!DOCTYPE html>...
by PB
Wed Jun 23, 2021 6:48 am
Forum: C++ Development
Topic: How to capture wxSizeEvent caused by double-clicking on window titlebar?
Replies: 6
Views: 1171

Re: How to capture wxSizeEvent caused by double-clicking on window titlebar?

As documented wxMaximizeEvent may not be always sent Notice that it is not sent when the window is restored to its original size after it had been maximized, only a normal wxSizeEvent is generated in this case. but wxSizeEvent is always sent. #include <wx/wx.h> class MyFrame : public wxFrame { publi...