Search found 442 matches

by jfouche
Fri Mar 20, 2009 6:51 am
Forum: C++ Development
Topic: Why virtual bool OnInit()? Why virtual?
Replies: 13
Views: 1082

Exactly
by jfouche
Thu Mar 19, 2009 5:45 pm
Forum: C++ Development
Topic: wxThread and custom events
Replies: 9
Views: 1785

Alternatively you could try testing your custom event inside the gui thread, to check that it does work there.
Well, it's OK...

I will use an ugly solution consisting of a wxCommandEvent, containing a tokenized string of all my information :(
by jfouche
Wed Mar 18, 2009 7:24 am
Forum: C++ Development
Topic: wxThread and custom events
Replies: 9
Views: 1785

Hi David I think (but maybe I'm wrong) that I don't need (but can be done ofc) to define copy constructor for class which contains only data members which have copy constructor. But, to be sure, I added : wxFifEvent(const wxFifEvent& copy) : wxNotifyEvent(copy) , m_search(copy.m_search) , m_file(cop...
by jfouche
Tue Mar 17, 2009 11:04 am
Forum: C++ Development
Topic: wxThread and custom events
Replies: 9
Views: 1785

Hi

I tried to clone my event, without success...
by jfouche
Mon Mar 16, 2009 4:26 pm
Forum: C++ Development
Topic: wxThread and custom events
Replies: 9
Views: 1785

Hi I'm using 2.8.9 ..., but waiting for 2.9 Looking to 2.8.9 documentation of AddPendingEvent : This is also the method to call for inter-thread communication---it will post events safely between different threads which means that this method is thread-safe by using critical sections where needed. I...
by jfouche
Mon Mar 16, 2009 2:31 pm
Forum: C++ Development
Topic: wxThread and custom events
Replies: 9
Views: 1785

wxThread and custom events

Hi I'm trying to send a custom event from a thread, to a wxWindow. I do not have problem with simple custom events (wxCommandEvent) but with my own event class : extern const wxEventType wxEVT_FIF_CURRENT_FILE; extern const wxEventType wxEVT_FIF_FOUND; class wxFifEvent: public wxNotifyEvent { wxStri...
by jfouche
Tue May 06, 2008 6:19 pm
Forum: C++ Development
Topic: Mouse click has no effect on a wxDialog
Replies: 11
Views: 1054

Thanks for your help. But why instantiation on th heap should be better? Is it just an idea or my code can include a stack/heap problem? Why don't ? I think it's easier to do : MyDlg dlg(this); dlg.ShowModal(); than MyDlg* pDlg = new MyDlg(this); pDlg->ShowModal(); pDlg->Destroy(); But it's just my...