Search found 287 matches

by Kvaz1r
Mon Mar 16, 2020 11:53 am
Forum: wxWidgets Development (Russian)
Topic: SetIcon в Win для глафной
Replies: 9
Views: 3396

Re: SetIcon в Win для глафной

А почему просто не добавить .rc-файл к файлам ресурсов проекта (все равно ведь в VS работаете), в котором указать все нужные пути?

Code: Select all

test ICON "Test.ico"
И в конструкторе просто вызывать

Code: Select all

SetIcon(wxICON(test)); 
.
by Kvaz1r
Mon Mar 16, 2020 11:16 am
Forum: C++ Development
Topic: Closing minimized apps
Replies: 7
Views: 571

Re: Closing minimized apps

Did you include submodules when clone repo?
by Kvaz1r
Fri Mar 13, 2020 11:26 am
Forum: Compiler / Linking / IDE Related
Topic: Not able to configure wxwidgets 3.1.3 on VS 2017
Replies: 9
Views: 2760

Re: Not able to configure wxwidgets 3.1.3 on VS 2017

First of all try build and run minimal sample from samples folder to check have your built the library right. if sample works - just copy settings from there.
by Kvaz1r
Wed Mar 11, 2020 10:26 pm
Forum: C++ Development
Topic: Poor performance when resizing window
Replies: 11
Views: 1028

Re: Poor performance when resizing window

Both issues are fixed in current master.
by Kvaz1r
Sun Mar 01, 2020 9:02 pm
Forum: C++ Development
Topic: Poor performance when resizing window
Replies: 11
Views: 1028

Re: Poor performance when resizing window

Registration on the bug tracker is broken, I'm not receiving any verification emails. And they're not in my spam folder either. Could someone with access please register these for me? Yeah, they still have the problem with verification e-mail. I've opened ticket for first bug - Direct2D GraphicsCon...
by Kvaz1r
Thu Feb 27, 2020 8:25 am
Forum: General Development
Topic: wxFormBuider, communtiy, etc...
Replies: 11
Views: 1331

Re: wxFormBuider, communtiy, etc...

I think the GUI toolkit of choice for .NET is WPF and that WPF is not cross-platform (is not a part of .NET Core). I am not even sure MS is still heavily invested in WPF. There is Avalonia cross platform framework for .Net, it's not a mature project (they in beta stage) yet but very perspective.
by Kvaz1r
Thu Feb 27, 2020 8:19 am
Forum: General Development
Topic: wxFormBuider, communtiy, etc...
Replies: 11
Views: 1331

Re: wxFormBuider, communtiy, etc...

Nobody knows when this future will come so at least for now you still can use wxWidgets. And for now there isn't many good GUI C++ alternatives (if they even exists, maybe only ImGui, but I never used this one). People are conservative so it definitely will takes some time and MFC is good example.
by Kvaz1r
Mon Feb 24, 2020 6:08 pm
Forum: C++ Development
Topic: passing data from worker thread to the main
Replies: 9
Views: 1010

Re: passing data from worker thread to the main

#include "wx/wx.h" #include <wx/thread.h> struct strData { int int1; int int2; float f1; wxString asString() const { return wxString::Format("{%d %d %lf}", int1, int2, f1); } }; class MyThread : public wxThread { public: MyThread(wxEvtHandler* parent) : wxThread(), m_parent(parent) {} ExitCode Entr...
by Kvaz1r
Mon Feb 24, 2020 10:47 am
Forum: C++ Development
Topic: EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?
Replies: 3
Views: 402

Re: EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?

It seems that m_MainPages is a member so capture this instead:

Code: Select all

CallAfter( [this] { m_MainPages->SetSelection(9); } );
by Kvaz1r
Thu Feb 20, 2020 7:31 am
Forum: C++ Development
Topic: One object in two classes
Replies: 2
Views: 352

Re: One object in two classes

That's is for what pointers are. Or usual or smart pointers like wxSharedPtr. But it's strange (maybe only for me :P) that you need shared some control between frames. What task are you resolving?
by Kvaz1r
Mon Feb 17, 2020 7:29 am
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 3133

Re: processing of custom events

Fixed in the latest development version: https://github.com/wxWidgets/wxWidgets/commit/08db475a7f97948940f98a6b7ea2129a663a202b Good, now the behaviour is consistent. who can explain - why to use wxCommandEvent, instead of regular wxThreadEvent, for inter-thread communication? I don't think that us...
by Kvaz1r
Fri Feb 14, 2020 8:13 am
Forum: C++ Development
Topic: wxThread / newbie
Replies: 19
Views: 1121

Re: wxThread / newbie

This structure seems to be simelar to the multithreading-structure (one main-script calling several independent sub-scripts to be started at one 'entry-point'). The question is, how to implement it... If several of your tasks will be appear after running of first task - you need worker pool. Unfort...
by Kvaz1r
Thu Feb 13, 2020 2:29 pm
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 3133

Re: processing of custom events

On top of that, there is this code in wxEvtHandler::QueueEvent: // 3) Inform the system that new pending events are somewhere, // and that these should be processed in idle time. wxWakeUpIdle(); We'd have to argue that the system is not idle (= not processing this thread event), because it constant...
by Kvaz1r
Thu Feb 13, 2020 11:24 am
Forum: C++ Development
Topic: processing of custom events
Replies: 27
Views: 3133

Re: processing of custom events

I'm not really sure that the behaviour is bug , rather opposite. QueueEvent is just put event in queue and there isn't any guarantee that ThreadEvent will been selected before idle event because thread event is not a windowing event. But it can worked if you manually try to switch control to pending...