Search found 13274 matches

by doublemax
Thu Apr 18, 2019 2:57 pm
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 13
Views: 141

Re: closing wxProgressDialog with a wxThread

c:\wxwidgets-3.1.0\src\msw\dialog.cpp(182): assert "!IsModal()" failed in wxDialog::ShowModal(): ShowModal() can't be called twice Did you call ShowModal() to show the dialog? That would be wrong. I would need some running code to investigate this further. I have no idea any more what you're doing ;)
by doublemax
Thu Apr 18, 2019 1:06 pm
Forum: C++ Development
Topic: Use a wxBitmapButton on a wxFilePickerCtrl/wxDirPickerCtrl
Replies: 2
Views: 19

Re: Use a wxBitmapButton on a wxFilePickerCtrl/wxDirPickerCtrl

This is a user forum. The best place to ask would be on the wx-users mailing list / Google group:
https://groups.google.com/forum/?hl=en& ... m/wx-users
by doublemax
Thu Apr 18, 2019 11:26 am
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 13
Views: 141

Re: closing wxProgressDialog with a wxThread

I don't know if it's the same issue, but i remember to have had problems with the wxPD_AUTO_HIDE style, so i never used it. The dialog gets destroyed anyway when it goes out of scope.
by doublemax
Thu Apr 18, 2019 7:47 am
Forum: C++ Development
Topic: Duplicate Symbol error
Replies: 3
Views: 48

Re: Duplicate Symbol error

Code: Select all

//Event Table
BEGIN_EVENT_TABLE(Proxy, wxFrame)
  // EVT_BUTTON(wxID_BUTCONN, Window::FunConnect)
  EVT_SOCKET(wxID_SOCKET, Proxy::OnSocketEvent)
END_EVENT_TABLE()
Like David said, this part must be in the .cpp file, not a header file.

Please upload the small sample that shows the problem.
by doublemax
Wed Apr 17, 2019 5:37 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 162

Re: Moving to Visual Studio 2019

What did fix it in the end?
by doublemax
Wed Apr 17, 2019 4:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 162

Re: Moving to Visual Studio 2019

BTW: Check the C++ preprocessor symbols and make sure that both UNICODE and _UNICODE are defined.
by doublemax
Wed Apr 17, 2019 4:46 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 162

Re: Moving to Visual Studio 2019

Removing winundef from all headers except in "main.h" doesn't change anything. Having winundef in header files is definitely dangerous, because it could make it impossible to assure the proper order. If possible it should be in source files only. But i don't believe anymore that that is the main pr...
by doublemax
Wed Apr 17, 2019 12:09 pm
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 110

Re: How to stop windows from showing program as "not responding"

If you can't show the progress, call Pulse() instead of Update(). Then you can remove the outer for-loop.
by doublemax
Wed Apr 17, 2019 9:44 am
Forum: C++ Development
Topic: How to stop windows from showing program as "not responding"
Replies: 10
Views: 110

Re: How to stop windows from showing program as "not responding"

There are several things to consider. 1) Can the user do something useful while the "long running task" is busy or not? If not, you should display a progress dialog while it's busy. This makes everything a little easier, because the progress dialog effectively blocks the rest of the GUI. All you nee...
by doublemax
Tue Apr 16, 2019 10:16 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 162

Re: Moving to Visual Studio 2019

When you mean ; " It should be after the last wx header and before any other headers." does it apply to the whole project or file by file ? For each source file. For example: // wx headers #include "wx/wx.h" #include "wx/filesys.h" // your own headers that use wxWidgets classes #include "aaaa.h" #i...
by doublemax
Tue Apr 16, 2019 8:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 162

Re: Moving to Visual Studio 2019

Where (in which order) do you include <wx/msw/winundef.h>? It should be after the last wx header and before any other headers.

Please try to recreate the error with the smallest amount of code, e.g. by modifying the "minimal" sample that comes with wxWidgets.
by doublemax
Tue Apr 16, 2019 4:36 pm
Forum: C++ Development
Topic: Append HTML to wxHtmlWindow without reloading
Replies: 6
Views: 91

Re: Append HTML to wxHtmlWindow without reloading

palacs wrote:
Tue Apr 16, 2019 3:05 pm
Couldn't wxHtmlWindow source code be modified to re-parse and re-draw only the appended part?
Theoretically: yes
Practically: Huge effort with no guarantee for success.
by doublemax
Mon Apr 15, 2019 7:22 pm
Forum: C++ Development
Topic: Append HTML to wxHtmlWindow without reloading
Replies: 6
Views: 91

Re: Append HTML to wxHtmlWindow without reloading

I want the same behavior of document.write() but in wxHtmlWindow. Appending without reloading. I don't think you can get that. It will always parse the whole document if anything changes. And this will get pretty slow the bigger the HTML data gets. wxRichTextCtrl will be too slow for lots of data, ...
by doublemax
Mon Apr 15, 2019 5:58 pm
Forum: C++ Development
Topic: Append HTML to wxHtmlWindow without reloading
Replies: 6
Views: 91

Re: Append HTML to wxHtmlWindow without reloading

I would like to achieve that wxHtmlWindow loads... Just to be clear: Don't mix up wxHtmlWindow and wxWebView. wxHtmlWindow uses wxWidgets' internal HTML parser which is limited and will be too slow for your purpose. wxWebView is a wrapper around the native browser on the respective platform. ...par...
by doublemax
Mon Apr 15, 2019 4:12 pm
Forum: C++ Development
Topic: wxWindowDisabler and wxBusyCursor together ???
Replies: 1
Views: 39

Re: wxWindowDisabler and wxBusyCursor together ???

What happens if you change the order, first create wxWindowDisabler, then set wxBusyCursor?