Search found 12 matches

by 4ggre5510n
Sun May 20, 2012 11:37 am
Forum: C++ Development
Topic: wxFrames movement binding
Replies: 1
Views: 587

wxFrames movement binding

Greetings! Two quick question regarding the frame movement : 1. Is there any "predefined" ( other then manually handling wxEVT_MOVE ) way to move multiply frames at once, when one of them is moving? 2. Is there any "predefined" ( other then manually handling wxEVT_MOVE ) way to "glue" frame to a bor...
by 4ggre5510n
Sun May 06, 2012 3:24 am
Forum: C++ Development
Topic: GUI functions from worker thread
Replies: 3
Views: 1203

GUI functions from worker thread

Greetings! I hope you will help me this time as well :] Why is calling GUI functions from worker thread prohibited? Is that platform dependent ( would it work under MSW )? Is there still some crash risk even with proper use of Mutexes and CriticalSections (associated with one, "to-be-modified" top l...
by 4ggre5510n
Fri Apr 27, 2012 3:36 pm
Forum: C++ Development
Topic: Deriving from multiple classes derived from wxEvtHandler
Replies: 5
Views: 1403

Re: Deriving from multiple classes derived from wxEvtHandler

Hmm, apparently I was a little too eager while reporting this solution solved problem... Reading through C++FAQ I've found that virtual class inheritance will work only if base classes will derive from same class as virtual. As ( much better ) explained here: http://www.parashift.com/c++-faq-lite/mu...
by 4ggre5510n
Fri Apr 27, 2012 12:06 am
Forum: C++ Development
Topic: Deriving from multiple classes derived from wxEvtHandler
Replies: 5
Views: 1403

Re: Deriving from multiple classes derived from wxEvtHandler

Thanks so much! PB: virtual keyword + qualifying call with class name works perfectly. But why this could be a wrong idea? I create myPanel, to draw directly on it's DC some really complicated, movable stuff ( not enough complicated for using GLUT thou ). I guess it's the right solution... This 'stu...
by 4ggre5510n
Thu Apr 26, 2012 8:13 pm
Forum: C++ Development
Topic: Deriving from multiple classes derived from wxEvtHandler
Replies: 5
Views: 1403

Deriving from multiple classes derived from wxEvtHandler

Greetings! I create my class ( wxMyPanel ) derived both from wxPanel wxMouseEventsManager Every one of those classes derives from wxEvtHandler. Then, while invoking Bind( wxEVT_PAINT, ...... ) in class constructor, I get one of the errors: "Reference to 'Bind' is ambigious" ( when I call this->Bind(...
by 4ggre5510n
Sat Apr 21, 2012 9:06 pm
Forum: Platform Related Issues
Topic: Issue with destroying user-closed window (MS Windows)
Replies: 8
Views: 2780

Re: Issue with destroying user-closed window (MS Windows)

What i would do is that the user action just hides the window, then you safely destroy it in any case. Well, this is just not pretty work-around... What if this splash window would present memory-intensive 3d animation ( poor example, but... )? I know it won't be ever showed again, why not free mem...
by 4ggre5510n
Sat Apr 21, 2012 11:32 am
Forum: Platform Related Issues
Topic: Issue with destroying user-closed window (MS Windows)
Replies: 8
Views: 2780

Re: Issue with destroying user-closed window (MS Windows)

Is that any better way to check if window is already destroyed then (undocumented) wxWindow->GetHWND() ? If the window is already destroyed, in best case this call would crash, in worst case it would return the random content of the memory that used to belong to a wxWindow. That's good point :| If ...
by 4ggre5510n
Fri Apr 20, 2012 8:33 pm
Forum: Platform Related Issues
Topic: Issue with destroying user-closed window (MS Windows)
Replies: 8
Views: 2780

Re: Issue with destroying user-closed window (MS Windows)

Ok, thanks, that's clear up things a lot ;]

But, isn't that wrong OOP philosophy? Shouldn't the class creating object be responsible for deleting it?

Anyway:
Is that any better way to check if window is already destroyed then (undocumented) wxWindow->GetHWND() ?
by 4ggre5510n
Fri Apr 20, 2012 7:39 pm
Forum: Platform Related Issues
Topic: Issue with destroying user-closed window (MS Windows)
Replies: 8
Views: 2780

Issue with destroying user-closed window (MS Windows)

Greetings! I've came upon some issues with closing and destroying windows already closed by user. Here is sample code of invoking wxFrame d-tor after user closed the window: #include <wx/wx.h> class app : public wxApp { wxFrame* mainFrame; public: bool OnInit() { mainFrame = new wxFrame(NULL, wxID_A...
by 4ggre5510n
Mon Mar 12, 2012 4:08 pm
Forum: wxCode
Topic: wxCurl linker problems
Replies: 4
Views: 4835

Re: wxCurl linker problems

Solved. There were three problems, one was mine: - I confused non-shared build with the .dll one. And two because of invalid makefiles: - There was missing linker "-lwldap32" flag in thirdparty/curl/build/makefile.gcc ( solved by setting LDFLAGS ?= -lwldap32 into either wxCurl or curl makefile.gcc )...
by 4ggre5510n
Sun Mar 11, 2012 5:44 pm
Forum: wxCode
Topic: wxCurl linker problems
Replies: 4
Views: 4835

wxCurl linker problems

Greetings! I have successfully compiled wxWidgets as monolithic: SHARED=1 MONOLITHIC=1 BUILD=release And also successfully compiled wxCode with: SHARED=1 MONOLITHIC=1 BUILD=release WX_DEBUG=0 I am using Code::Blocks with MinGW ( gcc version 4.4.1 (TDM-2 mingw32) ) under Windows 7. Linker includes bo...
by 4ggre5510n
Sun Mar 04, 2012 8:28 pm
Forum: C++ Development
Topic: wxEvtHandler::Connect problems and question
Replies: 1
Views: 727

wxEvtHandler::Connect problems and question

Greetings. Using wxEvtHandler::Conect() im binding certain event to a function processing that event. Now, as I understand, this function can be a method from any class, since I can create functor using wxObjectEventFunction(). Yet, when I call function from class derived from wxEvtHandler - I can k...