Search found 1429 matches

by catalin
Thu Aug 16, 2018 10:53 pm
Forum: C++ Development
Topic: Assertions in release build
Replies: 7
Views: 79

Re: Assertions in release build

somehow i managed to get Debug Assertion messages in my release build They will be there by default, if the release build of your app did not define NDEBUG. Is this behavior expected? Sometimes it is, depending on the settings, see below. I won't expect any assertions when compiling with NDEBUG Tha...
by catalin
Fri Aug 10, 2018 5:07 pm
Forum: Platform Related Issues
Topic: wxWebView doesn't trigger EVT_WEBVIEW_NAVIGATING
Replies: 2
Views: 90

Re: wxWebView doesn't trigger EVT_WEBVIEW_NAVIGATING

Trac is not down, here at least. You can also open a PR on github.
by catalin
Wed Aug 08, 2018 1:04 pm
Forum: C++ Development
Topic: DoGridDragEvent error
Replies: 3
Views: 67

Re: DoGridDragEvent error

Make sure the mouse is not already captured (even by the same window) when starting a drag.
by catalin
Fri Aug 03, 2018 2:28 pm
Forum: C++ Development
Topic: drawing to a bitmap from a thread [SOLVED]
Replies: 19
Views: 2545

Re: drawing to a bitmap from a thread [SOLVED]

No, sorry. But any article on the subject will be good enough, there is nothing wx-specific about it. Just consider native resources (which are almost always used by graphic APIs) as not thread safe. Apart from that, Google or any decent library are very good friends.
by catalin
Fri Aug 03, 2018 1:51 pm
Forum: C++ Development
Topic: drawing to a bitmap from a thread [SOLVED]
Replies: 19
Views: 2545

Re: drawing to a bitmap from a thread [SOLVED]

If you don't share the resources between threads it should be safe.
There have been some years, wouldn't it have been faster to try already?
by catalin
Thu Aug 02, 2018 11:27 pm
Forum: wx.NET
Topic: wx.NET with VB.NET (VS 2012)
Replies: 1
Views: 110

Re: wx.NET with VB.NET (VS 2012)

I can't really help you there, but I see the latest news on that website is dated "07-Feb-2011" and AFAFIU the latest wxnet version was based on wxW 2.8.11. Unfortunately it appears that it has been abandoned for a long time.
by catalin
Tue Jul 31, 2018 8:46 am
Forum: Compiler / Linking / IDE Related
Topic: Going to MSVC2017
Replies: 5
Views: 140

Re: Going to MSVC2017

Could it be that you compiled without cleaning older build files, from a different VS? I downloaded and installed MSVC 2017 Community because I needed a full compatibility with the C++11 standard I find it really, really hard to believe that MS waited until 2017 to have C++11 support .. Next I opene...
by catalin
Wed Jul 18, 2018 7:35 am
Forum: Compiler / Linking / IDE Related
Topic: Error Linking WXQT
Replies: 11
Views: 298

Re: Error Linking WXQT

I manually installed Qt-5.8 [...] Then before running my app I have to export the path to the portable Qt libs, otherwise it'll try to use the installed Qt libs Mind that recently QT5_CUSTOM_DIR was added for configure. Search for it in docs/qt/install.txt . It will also set the rpath for your app ...
by catalin
Wed Jun 27, 2018 9:11 pm
Forum: Component Writing
Topic: Class derived from wxPanel does not show wxListView upon maximizing window
Replies: 8
Views: 431

Re: Class derived from wxPanel does not show wxListView upon maximizing window

That is definitely not the smallest piece of code that you should have tried with. What happens with only MainView::MainView() : View("View Name") { wxListView* SettingsList = new wxListView(this, wxID_ANY, wxDefaultPosition, wxSize(325, 250), wxLC_REPORT | wxLC_HRULES | wxLC_VRULES); wxBo...
by catalin
Wed Jun 27, 2018 7:57 pm
Forum: Component Writing
Topic: Class derived from wxPanel does not show wxListView upon maximizing window
Replies: 8
Views: 431

Re: Class derived from wxPanel does not show wxListView upon maximizing window

In MainView, the constructor calls a function CreatePrimaryView(), which calls a function CreateDataAndListRow(), which calls a function CreateSettingsList(). Each of these functions creates a sizer and returns it, until ultimately the MainView constructor takes the sizer from CreatePrimaryView() a...
by catalin
Wed Jun 27, 2018 7:15 pm
Forum: Component Writing
Topic: Class derived from wxPanel does not show wxListView upon maximizing window
Replies: 8
Views: 431

Re: Class derived from wxPanel does not show wxListView upon maximizing window

Where is CreateSettingsList() called from, who is 'parent' that is passed to it, what happens with the returned sizer?
by catalin
Wed Jun 27, 2018 2:08 pm
Forum: C++ Development
Topic: Using wxClientDC to Panel Paint (Problem) [SOLVED]
Replies: 10
Views: 590

Re: Using wxClientDC to Panel Paint (Problem) [SOLVED]

That should be good enough I guess The paint attempt on client DC for mainPanel happens only once. Any subsequent Paint event will apply the native painting erasing anything you've painted using the client DC. So, you either paint on a wxClientDC in a loop somehow (which will flicker terribly for su...
by catalin
Wed Jun 27, 2018 1:56 pm
Forum: C++ Development
Topic: Using wxClientDC to Panel Paint (Problem) [SOLVED]
Replies: 10
Views: 590

Re: Using wxClientDC to Panel Paint (Problem) [SOLVED]

The effect of SetBrush() can be seen in the filling of any drawn shapes. So it's not the right choice here.
To paint the background use

Code: Select all

dc.SetBackground(*wxGREEN_BRUSH);
dc.Clear();

Go to advanced search