Search found 17 matches
- Mon Feb 10, 2020 2:54 pm
- Forum: General Development
- Topic: Inquire, to make my library support MacOS
- Replies: 4
- Views: 1508
Re: Inquire, to make my library support MacOS
Why do you want to interfere with the Objective-C code? I just want to use some features of "Cocoa" in my library because there's no alternative way to do that except using "cocoa". If you need a way to test you code on OSX, I can help you with that. I own 2 Mac laptops - one wi...
- Sat Feb 01, 2020 11:21 am
- Forum: General Development
- Topic: Inquire, to make my library support MacOS
- Replies: 4
- Views: 1508
Inquire, to make my library support MacOS
I have a cross-platform C++ library that I have created which supports (Windows, Linux), but I want to support macOS too, and in order to use macOS "cocoa" I must use either Objective-C or Objective-C++. I have read a few about that subject and I found that to compile a mixed code of macO...
- Mon Jan 13, 2020 11:56 pm
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 1758
Re: The thread does not want to finish because of the “TestDestroy” always return false.
I want to use the threads with GUI because I have a method that does several steps and I want when it finished from each step increase the progress bar and so on until finish all the steps. the following figure explains my idea: http://u.cubeupload.com/ahmed_fa/0ZAxYC.jpg and for that, I want to use...
- Mon Jan 13, 2020 8:25 am
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 1758
Re: The thread does not want to finish because of the “TestDestroy” always return false.
I thank everyone who responded to me.
Now I have understood some things that I did not understand.
Really, the threads are not easy like I was thinking.
Now I have understood some things that I did not understand.
Really, the threads are not easy like I was thinking.
- Mon Jan 13, 2020 7:12 am
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 1758
Re: The thread does not want to finish because of the “TestDestroy” always return false.
Thank you for your response. Unfortunately, I have seen that documentation link before and still don't understand it well. If you answer my following questions you will facilitate me to understand some things that I don't understand. After I call wxThread::Delete from outside a runtime error occurre...
- Mon Jan 13, 2020 3:10 am
- Forum: C++ Development
- Topic: The thread does not want to finish because of the “TestDestroy” always return false.
- Replies: 10
- Views: 1758
The thread does not want to finish because of the “TestDestroy” always return false.
This is the first time I have used threads and after I read a little from the documentation on threads I am still confused. in my example, I want to do a very simple example just Increasing a progress bar (wxGauge) to reach 100% by using a thread. // mainFrm.cpp (Main Window) void mainFrm::button_On...
- Tue May 21, 2019 12:49 pm
- Forum: C++ Development
- Topic: Read the comments of each group from an INI file
- Replies: 2
- Views: 628
Read the comments of each group from an INI file
I am using wxFileConfig to read an INI file, but there is no way to read the comments of each group. An example of an INI file: [sdl] # sensitivity: Mouse sensitivity. # waitonerror: Wait before closing the console if has an error. # mapperfile: File used to load/save the key/event mappings from. Re...
- Mon Apr 22, 2019 2:27 am
- Forum: C++ Development
- Topic: I need a very simple example to know how to use threads with wxGauge
- Replies: 9
- Views: 1970
Re: I need a very simple example to know how to use threads with wxGauge
I wrote the following code as a try: //thread.h #include <wx\thread.h> wxDECLARE_EVENT(wxEVT_PROGRESSBAR_UPDATE, wxThreadEvent); wxDECLARE_EVENT(wxEVT_PROGRESSBAR_FINISHED, wxThreadEvent); class ProgressBarThread: public wxThread { public: ProgressBarThread(MainFrm *frame); virtual ExitCode Entry();...
- Sat Apr 20, 2019 4:11 pm
- Forum: C++ Development
- Topic: I need a very simple example to know how to use threads with wxGauge
- Replies: 9
- Views: 1970
Re: I need a very simple example to know how to use threads with wxGauge
Do you really want to update just a single wxGauge, so that the user can still work with your application while the background thread is working? Or do you want to display a wxProgressDialog and the user can not use the application during the process? Yes, I want to update the wxGauge and the user ...
- Sat Apr 20, 2019 1:45 pm
- Forum: C++ Development
- Topic: I need a very simple example to know how to use threads with wxGauge
- Replies: 9
- Views: 1970
I need a very simple example to know how to use threads with wxGauge
I have to use " wxGauge " in my app, but when making a process that takes a long time my app freezes, therefore, I have to use threads to solve that problem, but I know that threads are complicated ,so, I want a very simple example to make a thread that works with " wxGauge " in ...
- Sat Apr 20, 2019 1:18 pm
- Forum: C++ Development
- Topic: Read access violation when closing my app
- Replies: 5
- Views: 1323
Re: Read access violation when closing my app
Thank you.
I hope you give me a page from the documentation which confirms your talking.
I hope you give me a page from the documentation which confirms your talking.
- Fri Apr 19, 2019 1:08 am
- Forum: C++ Development
- Topic: Read access violation when closing my app
- Replies: 5
- Views: 1323
Read access violation when closing my app
When closing my application a runtime error occurs. After debugging I found "Read access violation". http://u.cubeupload.com/ahmed_fa/lxTOuv.jpg myCode: class myApp: public wxApp { public: virtual bool OnInit(); virtual int OnExit(); wxSingleInstanceChecker *AppSingleInstance; MainFrm *mai...
- Mon Apr 15, 2019 2:35 pm
- Forum: C++ Development
- Topic: How to resize the "Sizer" dynamically (at runtime)
- Replies: 5
- Views: 1706
Re: How to resize the "Sizer" dynamically (at runtime)
Now it works well as intended after using "layout()" method on the highest sizer (Main sizer that contains all elements in the wxFrame).Alternatively, try calling Layout() on the highest sizer in the hierarchy.
Thank you for helping me.
- Mon Apr 15, 2019 1:49 pm
- Forum: C++ Development
- Topic: How to resize the "Sizer" dynamically (at runtime)
- Replies: 5
- Views: 1706
Re: How to resize the "Sizer" dynamically (at runtime)
Unfortunately, after applied the "layout()" method the "StaticText" is still overlapped with other elements. http://u.cubeupload.com/ahmed_fa/n8x6mp.png Also, I have changed the structure as follow: http://u.cubeupload.com/ahmed_fa/e1vfN5.png And the following is my code after wh...
- Sun Apr 14, 2019 11:57 pm
- Forum: C++ Development
- Topic: How to resize the "Sizer" dynamically (at runtime)
- Replies: 5
- Views: 1706
How to resize the "Sizer" dynamically (at runtime)
I have the following structure: http://u.cubeupload.com/ahmed_fa/GWl3fD.jpg And they are shown in design mode as follow: http://u.cubeupload.com/ahmed_fa/rYclt3.jpg By default, these "gauge" and "StaticText" are hidden and at runtime, I show up which one of them. The problem is w...