Search found 199 matches

by alys666
Mon Apr 22, 2019 2:53 pm
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 51
Views: 1263

Re: closing wxProgressDialog with a wxThread

MyProgressDlg(wxWindow *par) : wxProgressDialog(wxT("thread progress test"), wxT("message"), 100, par, wxPD_CAN_ABORT | wxPD_APP_MODAL | wxPD_AUTO_HIDE) { thr = new MyThread(this); Connect(wxEVT_THREAD, wxThreadEventHandler(MyProgressDlg::onThreadEvent)); thr->Run(); } do not know if this your code...
by alys666
Mon Apr 22, 2019 2:10 pm
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 51
Views: 1263

Re: closing wxProgressDialog with a wxThread

Hi. you definitely need to use not wxString, but const wxString & - so give as parameter a constant reference to object. else you are making excessive copies you do not needed. okay, cool, thank you! i have to admit that const is one thing I never got used to... const means that object given by ref...
by alys666
Mon Apr 22, 2019 9:48 am
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 51
Views: 1263

Re: closing wxProgressDialog with a wxThread

Hi. you definitely need to use not wxString, but const wxString & - so give as parameter a constant reference to object. else you are making excessive copies you do not needed. Everywhere in your methods parameter lists you are doing so. wxMutexError lock(wxString byWhom, wxString whichMtx = wxEmpty...
by alys666
Mon Apr 22, 2019 9:02 am
Forum: C++ Development
Topic: I need a very simple example to know how to use threads with wxGauge
Replies: 9
Views: 358

Re: I need a very simple example to know how to use threads with wxGauge

The problem is that the "thread_ThreadUpdate" method is executed continuously and the thread doesn't move to the next method "thread_ThreadFinished", Why? to easy stop your thread add to your MainFrame a member public: bool _stopThread=false; because thread has reference(or pointer) to MainFrame, h...
by alys666
Sun Apr 21, 2019 1:17 am
Forum: C++ Development
Topic: Memory data sharing between two applications
Replies: 5
Views: 241

Re: Memory data sharing between two applications

best ways are sockets and pipes. as mentioned, learn the topic - inter-process communication.
by alys666
Sun Apr 21, 2019 12:48 am
Forum: C++ Development
Topic: I need a very simple example to know how to use threads with wxGauge
Replies: 9
Views: 358

Re: I need a very simple example to know how to use threads with wxGauge

to use wxGauge (or any other control from other thread) you must send a message to main thread. i do exactly the things, you need in my code: my code to send a message from other thread to main frame- void onTick(int ftick) override{ wxThreadEvent *le = new wxThreadEvent(); le->SetId(AsyncMessageUID...
by alys666
Sat Apr 13, 2019 11:41 pm
Forum: C++ Development
Topic: wxWidgets hangs in poll()
Replies: 2
Views: 119

Re: wxWidgets hangs in poll()

question closed. as in mentioned topic, i was confused by debugger.
and inspection of running threads brought the reason - it was not a problem of wxWidgets code.
thanks.
by alys666
Sat Apr 13, 2019 6:27 pm
Forum: C++ Development
Topic: wxWidgets hangs in poll()
Replies: 2
Views: 119

Re: wxWidgets hangs in poll()

i've found this topic and it looks like my problem -
viewtopic.php?f=1&t=38230&p=155861#p155861
i'll investigate the problem deeply
by alys666
Sat Apr 13, 2019 5:45 pm
Forum: C++ Development
Topic: wxWidgets hangs in poll()
Replies: 2
Views: 119

wxWidgets hangs in poll()

hi. i have Ubuntu 16.04, wxWidgets 3.0.4 built from sources, and a problem. sometimes(about once a hour) my program hangs in poll()function(found under debugger) and does not react on anything. program has a rich usage of wxWidgets, including threads and messaging between threads and GUI thread, and...
by alys666
Mon Nov 21, 2016 9:18 am
Forum: C++ Development
Topic: wxWidgets 3.0.2: cannot get sashes working
Replies: 9
Views: 743

Re: wxWidgets 3.0.2: cannot get sashes working

Want to move this question up, because in my environment still there is problem with sash in wxSplitterWIndow. I even thied wxSplitterWindow example from wxWidgets examples, and sash there is not working, like wxSplitterWIndow has not sash at all. I cannot manualy drag it to resize clients. I can re...
by alys666
Tue Nov 15, 2016 8:32 pm
Forum: C++ Development
Topic: Smth wrong with wxMessageDialog?
Replies: 5
Views: 539

Re: Smth wrong with wxMessageDialog?

yes. i entered the Unity session and everything is correct, so i do not need my "hack". Here Gnome_Shell is the reason. added: more correct info - there was something wrong with my gnome-shell. when i tested the bug in Unity, and have not it found, and since i changed themes in Unity Tweaks, -> when...
by alys666
Tue Nov 15, 2016 8:19 pm
Forum: C++ Development
Topic: Smth wrong with wxMessageDialog?
Replies: 5
Views: 539

Re: Smth wrong with wxMessageDialog?

This is a little strange because I use wxMessageBox in almost exactly the same way as your first example on Ubuntu 14.04 and it works fine! For example, the following: int response = wxMessageBox(msg, "Confirm", selection.size() > 1 ? (wxYES_NO | wxCANCEL) : wxYES_NO); if (response == wxYES) { .......
by alys666
Mon Oct 31, 2016 11:13 pm
Forum: C++ Development
Topic: Smth wrong with wxMessageDialog?
Replies: 5
Views: 539

Re: Smth wrong with wxMessageDialog?

Thank You, doublemax.
by alys666
Mon Oct 31, 2016 8:08 pm
Forum: C++ Development
Topic: Smth wrong with wxMessageDialog?
Replies: 5
Views: 539

Smth wrong with wxMessageDialog?

Hi! I tried to use wxMessageBox in my developement, but seem it does'not show the title(capture), only the message. int la = wxMessageBox(fmessage, ftitle, (wxYES_NO | wxCANCEL)); then i tried to use wxMessageDialog ld(fpar,fmessage,ftitle,wxICON_QUESTION|wxYES_NO|wxCANCEL) lres = ld.ShowModal(); bu...
by alys666
Wed Oct 19, 2016 12:59 am
Forum: C++ Development
Topic: wxWidgets 3.0.2: cannot get sashes working
Replies: 9
Views: 743

Re: wxWidgets 3.0.2: cannot get sashes working

thanks, doublemax. your sad words saved me from suicide because of couple of days long search, where is this damn sash of auimanager.