Search found 61 matches

by softport
Sat Apr 06, 2013 7:30 am
Forum: wxDev-C++
Topic: Panels not being displayed: Project inspector, Compiler etc
Replies: 2
Views: 3640

Re: Panels not being displayed: Project inspector, Compiler

Thanks Tony, I'll keep that in mind for next time. It's been an interesting week trying out new things. Had a go at Visual C++ 2008 and was extremely impressed with how easy it was to make a GUI. Then the problems start (if you are only familiar with C and C++) when writing the code behind it: "Erro...
by softport
Wed Mar 20, 2013 2:43 am
Forum: wxDev-C++
Topic: Panels not being displayed: Project inspector, Compiler etc
Replies: 2
Views: 3640

Panels not being displayed: Project inspector, Compiler etc

Hello, sorry to bug you all again, but the IDE has more problems: It will not display (or I can't figure out how) any panels. In View->Show panels I can check and un-check the panel selection, but it makes no difference, nothing happens. Instead, 2 drop boxes have appeared where I can select a class...
by softport
Mon Mar 18, 2013 11:36 pm
Forum: wxDev-C++
Topic: All Controls on top of each other, at top left
Replies: 6
Views: 4341

Re: All Controls piled on top of each other at top left

Thanks Tony, that fixed it!
by softport
Sun Mar 17, 2013 10:42 am
Forum: wxDev-C++
Topic: All Controls on top of each other, at top left
Replies: 6
Views: 4341

Re: All Controls piled on top of each other at top left

Catalin, thank you, but using sizers is not going to solve the problem: the IDE not functioning as it should. Objects I create on the frame are not getting their positions recorded in the Create GUI controls section of the code.
by softport
Sun Mar 17, 2013 4:24 am
Forum: wxDev-C++
Topic: All Controls on top of each other, at top left
Replies: 6
Views: 4341

Re: All Controls piled on top of each other at top left

Thanks you catalin, for a second I thought that might be it. The last thing I was doing was playing with sizers, then deleted them all. Maybe some were some left in the CreateGUIControls() section. No such luck. I have restarted my program with Visual Studio 2008, and am not enjoying it. void HIDAPI...
by softport
Sat Mar 16, 2013 7:51 am
Forum: wxDev-C++
Topic: All Controls on top of each other, at top left
Replies: 6
Views: 4341

All Controls on top of each other, at top left

Hello, I hope this won't involve a re-installation. When I run a program in the IDE, or the executable, all the controls are piled on top of each other and moved to the top left corner. Below is an example line from "create GUI controls". All the other controls have the position set to wxDefaultPosi...
by softport
Thu Feb 21, 2013 7:23 am
Forum: wxDev-C++
Topic: Changing a control's parent
Replies: 1
Views: 2047

Changing a control's parent

Hello, I am adding a notebook to my form, and would like to move some of the form's controls into it. Is there a way to do this? I have tried cutting and pasting a control into the notebook, but this doesn't work. Have also tried changing the parent field in the Create GUI controls section of the co...
by softport
Wed Jan 23, 2013 1:20 pm
Forum: wxDev-C++
Topic: wxSemaphore::TryWait as 'IF' statement condition not working
Replies: 3
Views: 3066

Re: wxSemaphore::TryWait as 'IF' statement condition not wor

Well, have to report no success. I tried making a semaphore from inside the thread, but I couldn't make it visible to the main app. I tried using a global mutex, but got the same results as with the semaphore. Here's a quote from Cross-Platform Gui Programming With WxWidgets: "If you are in a thread...
by softport
Wed Jan 23, 2013 2:34 am
Forum: wxDev-C++
Topic: wxSemaphore::TryWait as 'IF' statement condition not working
Replies: 3
Views: 3066

Re: wxSemaphore::TryWait as 'IF' statement condition not wor

Thanks Manolo, I will look at wxCondition. I created a global semaphore in the app (in myForm.cpp), and am using it in both the app and the thread. Apart from calling mySemaphore.Post() in the app, and mySemaphore.Wait() in the thread, there is no other mention of it. I do however have a couple of o...
by softport
Tue Jan 22, 2013 4:04 pm
Forum: wxDev-C++
Topic: wxSemaphore::TryWait as 'IF' statement condition not working
Replies: 3
Views: 3066

wxSemaphore::TryWait as 'IF' statement condition not working

Hello, I am trying to test, from a thread, if some code has finished executing in the main thread. If the main thread is busy, the child thread needs to go on doing other things. In myForm.cpp, I created a semaphore that signals the status of the code that the child thread is waiting on: wxSemaphore...
by softport
Fri Jan 18, 2013 12:13 am
Forum: wxDev-C++
Topic: Can a wxSemaphore be created as a public member of a class?
Replies: 2
Views: 2108

Re: Can a wxSemaphore be created as a public member of a cla

Thanks doublemax, hadn't realized I was running before learning to walk. Have some reading to do.
Thanks for the lesson!
by softport
Thu Jan 17, 2013 11:07 pm
Forum: wxDev-C++
Topic: Can a wxSemaphore be created as a public member of a class?
Replies: 2
Views: 2108

Can a wxSemaphore be created as a public member of a class?

Hello, I am getting a compiler error when I try to add a semaphore as a public member of a class. Is this not allowed? I included the header <wx/thread.h>. I also tried making it private, but that gives the same compiler errors. Thanks! public: ClassReport_IN(); virtual ~ClassReport_IN(); void init(...
by softport
Sun Jan 13, 2013 12:04 pm
Forum: C++ Development
Topic: wxThread using pointer to change array data in main thread
Replies: 4
Views: 1473

Re: wxThread using pointer to change array data in main thre

Right, forgot about that. Thanks again!
by softport
Sun Jan 13, 2013 11:58 am
Forum: C++ Development
Topic: wxThread using pointer to change array data in main thread
Replies: 4
Views: 1473

Re: wxThread using pointer to change array data in main thre

Thanks doublemax! The array lasts for the duration of the program. Had a thought just after posting, will this work in reverse? Say after creation of the new thread, I pass the main thread a pointer to some data in the new thread. Could the main thread send messages to the new thread this way? I don...
by softport
Sun Jan 13, 2013 11:30 am
Forum: C++ Development
Topic: wxThread using pointer to change array data in main thread
Replies: 4
Views: 1473

wxThread using pointer to change array data in main thread

Hello, I have been trying to figure out how to pass data from a wx detached thread, to an array in the main thread. After some searching and trial and error, I ended up passing an array pointer to the thread, when the thread is created. It's working fine, but I'm wondering is it a safe thing to do? ...