Search found 24 matches

by RuudH
Thu Feb 24, 2022 5:48 am
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

Re: trigger custom event from non GUI source

I used std::thread as a habit. I never used wxThread (looks like much more work to setup according the class reference) If I would have been able to trick a non-GUI source to accept/create a wxWindow or wxFrame pointer I would have been a lot closer to success. I always run into a 'is already define...
by RuudH
Wed Feb 23, 2022 9:52 am
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

Re: trigger custom event from non GUI source

I apologize for being stupid. I know I am overlooking something important (and basic) in my way of thinking (that I am stuck in). The event data is created in Server.cpp, so I need 'class DataLoadingThread : public wxThread ' in there. when class DataLoadingThread : public wxThread is placed in non-...
by RuudH
Fri Feb 18, 2022 7:06 am
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

Re: trigger custom event from non GUI source

I am sorry PB. I really do appreciate your efforts to help me. I failed to make DataLoadingThread work in my setup. My knowledge on C++ and wxWidgets is far below "expert" level, but I am eagerly learning. (It is a hobby I started to keep my old grey cells challenged during the heavily res...
by RuudH
Wed Feb 16, 2022 12:36 pm
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

Re: trigger custom event from non GUI source

The class Session is not derived from wxWindow. It is just a header and source pair Server.x added to the project. I have read the DataLoadingThread::Entry(), but do not understand what happens there that I could use. The server is started in OnInit like follows: // Start TCP Async Echo Server std::...
by RuudH
Wed Feb 16, 2022 10:51 am
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

Re: trigger custom event from non GUI source

Thank you for your advice.
I am new to what you suggest.

Could you please show me how?

I added the constructor and the calling function in my top post.
by RuudH
Wed Feb 16, 2022 9:00 am
Forum: C++ Development
Topic: trigger custom event from non GUI source
Replies: 11
Views: 771

trigger custom event from non GUI source

Hi, I am using mingw64 (gcc++ v11.2 C++ compiler + Boost) with Code::Blocks 20.03, and wxWidgets version 3.15 on window 10 (lastest version). I have successfully created custom events in GUI frame environments. I am testing Boost::ASIO, and found an async echo server example, which I adapted to my n...
by RuudH
Tue Jan 25, 2022 3:10 pm
Forum: C++ Development
Topic: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file
Replies: 9
Views: 579

Re: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file

Sorry, Sorry, Sorry :-(
My stupid mistake.

Thank you so much. Its working.
And, more important, I begin to understand the principles (and that was what this exercise was all about).
by RuudH
Tue Jan 25, 2022 3:04 pm
Forum: C++ Development
Topic: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file
Replies: 9
Views: 579

Re: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file

Thank you.
Just one thing I do not understand.
I changed everything as shown in your attachment.

None of the events are triggered now
by RuudH
Tue Jan 25, 2022 12:01 pm
Forum: C++ Development
Topic: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file
Replies: 9
Views: 579

Re: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file

I am not sure what you mean with creating the event on the stack at runtime. How is this done? evt_2.Skip() did not help, and removing the 1st call did not either I have moved all event stuff in the OnButtonClick function void Frame2::m_button3OnButtonClick( wxCommandEvent& event ) { wxWindow *p...
by RuudH
Tue Jan 25, 2022 7:16 am
Forum: C++ Development
Topic: Custom event posted in derived frame(class) file does not trigger in parent frame (class) file
Replies: 9
Views: 579

Custom event posted in derived frame(class) file does not trigger in parent frame (class) file

Hi, I have created a working custom event with the help of the wiki. Now I am trying the following: I have 3 sets of header and source. A GUI set, Main app frame set, and a derived frame set. What I am trying to do is trigger a custom event in the derived frame, and have it picked up in the parent (...
by RuudH
Sun Jan 02, 2022 6:28 am
Forum: Announcements and Discoveries
Topic: wxUiEditor Beta release
Replies: 18
Views: 12280

Re: wxUiEditor Beta release

Great, thank you very much Its working now. I tried to get it all done within MSYS64, but git clone was not complete (blue folders missing), and I could not get cmake and ninja working :-(. So I started again from 0, and after getting all the needed packages, I updated MSYS64 again, exited, and clon...
by RuudH
Fri Dec 31, 2021 8:39 am
Forum: Announcements and Discoveries
Topic: wxUiEditor Beta release
Replies: 18
Views: 12280

Re: wxUiEditor Beta release

Hi, I tried different compiler versions, but got nowhere. Then I read that MSYS is a very stable environment, so I installed it with MinGW (updated to latest) Now everything seemed to fall in place. cmake -G "MinGW Makefiles" . -B build -> no errors cmake --build build --config Release -> ...
by RuudH
Thu Dec 30, 2021 5:56 am
Forum: Announcements and Discoveries
Topic: wxUiEditor Beta release
Replies: 18
Views: 12280

Re: wxUiEditor Beta release

To begin with, I am a newby when it comes to make and cmake. I normally use Code::Blocks 20.03 to do all the work. I have downloaded the files (do not have GIT) Installed latest CMake, and have MINGW 18.0 from Nuwen.net. When I suse the command "cmake -G "MinGW Makefiles" . -B build&q...