Search found 442 matches

by jfouche
Wed Oct 13, 2010 9:33 am
Forum: Compiler / Linking / IDE Related
Topic: visual studio 2008 compile error
Replies: 4
Views: 2630

You did it :)
by jfouche
Mon Oct 11, 2010 6:31 pm
Forum: C++ Development
Topic: DEFINE_EVENT_TYPE obsolete?
Replies: 10
Views: 1623

You probably left a DECLARE_EVENT_TYPE in a header file. If you declare your event a way, and define it another way, you'll have this message. So if you need your event to be visible out of the scope of your cpp file, you'll have to define it in the header, using the 2.9 way (eg : wxDECLARE_EVENT in...
by jfouche
Wed Oct 06, 2010 12:54 pm
Forum: C++ Development
Topic: wxAuiManager::SavePerspective() Problem
Replies: 13
Views: 2336

Maybe the pb comes from the fact that the 1st time, you do not have perspective, so you probably load an empty string : wxString auiSettings = settings->readConf(wxT("AUI")); doesn't tell you if auiSettings are loaded. So you try applying bad settings to perspective. That's why I do : if (wxConfig::...
by jfouche
Wed Oct 06, 2010 8:44 am
Forum: C++ Development
Topic: wxAuiManager::SavePerspective() Problem
Replies: 13
Views: 2336

in wxApp::OnExit(), your frame is already destroyed
by jfouche
Wed Oct 06, 2010 7:57 am
Forum: C++ Development
Topic: wxAuiManager::SavePerspective() Problem
Replies: 13
Views: 2336

Hello I do not have problems with perspectives. Here is how I use it : static const wxString CFG_AUI_PERSPECTIVE = wxT("gui/aui"); MyFrame::MyFrame(wxWindow* parent, ...) : wxFrame(...) { // Create AUI panes ... wxString auiPerspective; if (wxConfig::Get()->Read(CFG_AUI_PERSPECTIVE, &auiPerspective)...
by jfouche
Fri Oct 01, 2010 1:34 pm
Forum: C++ Development
Topic: Finding the active child frame in mdi
Replies: 1
Views: 344

wxMDIParentFrame::GetActiveChild() is probably the solution, as wxDocMDIChildframe inherit wxMDIChildFrame.
by jfouche
Fri Oct 01, 2010 12:05 pm
Forum: C++ Development
Topic: How to dismiss a wxMessageDialog programmatically?
Replies: 2
Views: 736

As you created a wxMessageDialog, you have to call ShowModal to show it. If it's a modal dialog, you can do anything before it's closed by clicking on a button. I suggest you to not use a wxMessageDialog, but your own wxDialog derived class : bool MainApp::OnInit() { wxDialog* dlg = new wxDialog(0, ...
by jfouche
Thu Sep 30, 2010 2:52 pm
Forum: C++ Development
Topic: Plugin oriented App
Replies: 62
Views: 14927

You should use the wxNewId() and wxNewEventType() functions, so, you'll be sure that your IDs will be unique ones. I don't think so. In the application you'll have an instance of the static var which auto generate the IDs. In the plugin, you'll have another one. So you can have multiple IDs with th...
by jfouche
Thu Sep 30, 2010 2:26 pm
Forum: C++ Development
Topic: Plugin oriented App
Replies: 62
Views: 14927

Excuse me, I didn't read carefuly...
Can you provide a small example (by text), because I don't see the problem.
by jfouche
Thu Sep 30, 2010 1:16 pm
Forum: C++ Development
Topic: Plugin oriented App
Replies: 62
Views: 14927

Do not use DECLARE_EVENT_TYPE and DEFINE_EVENT_TYPE with plugins. You must explicit the ID. I personnaly use enum in a
common header.
by jfouche
Thu Sep 30, 2010 10:57 am
Forum: C++ Development
Topic: Append more items at once along with client data
Replies: 8
Views: 1144

OK, I understand : the API doesn't provide you a way to add multiple items with client data in only one method. As you have lot's of data, I suggest you to switch to wxHtmlListBox , which is better suitable vary a big quantity of datas. class MyListBox : public wxHtmlListBox { std::vector<MyData> m_...
by jfouche
Thu Sep 30, 2010 9:53 am
Forum: C++ Development
Topic: Append more items at once along with client data
Replies: 8
Views: 1144

why don't you use : wxStringClientData* StringClientData = new wxStringClientData [5000]; as wxStringClientData inherit wxClientData, there is no problem at all. You can add it to you list box : wxStringClientData* clientDatas = new wxStringClientData[count]; ... for (size_t i = 0; i < count; ++i) {...
by jfouche
Tue Sep 28, 2010 3:54 pm
Forum: Component Writing
Topic: wxAuiManager
Replies: 1
Views: 1244

Hi, I have assembled a panel wxAuiManager within this I have several wxPanel. It is possible that if I close one of these panels removed from the panel once again to its original position in the main panel. Another point too if I want to dockeable again in the main panel is in its initial position ...
by jfouche
Tue Sep 28, 2010 12:55 pm
Forum: C++ Development
Topic: Close-Application issue
Replies: 14
Views: 1357

This might be a stupid question: is there an operator== for wxString? 'cause I don't seem to find it... Don't be afraid, it exists ofc. So if(temp1 == wxT("CONFIRM_ON_EXIT")) { have the expected behaviour. What exactly does not work ? Is your temp2 msgBox shown ? Does 1 or 2 is shown on the msgBox ...
by jfouche
Tue Sep 28, 2010 10:56 am
Forum: C++ Development
Topic: Close-Application issue
Replies: 14
Views: 1357

Does :

Code: Select all

wxMessageBox(File.GetLine(i));
wxString temp1(stk.GetNextToken()); 
wxMessageBox(wxString(wxtT("temp1 = ")) + temp1); 
wxString temp2 = stk.GetNextToken(); 
wxMessageBox(wxString(wxtT("temp2 = ")) + temp2);
Shows you CONFIRM_ON_EXIT for temp1 ?
What is your text file content ?