Did you look at the MDI sample in the samples directory?
I think this does what you want.
Search found 148 matches
- Mon Nov 24, 2008 8:27 pm
- Forum: C++ Development
- Topic: telescopic frames or dialogs
- Replies: 3
- Views: 756
- Thu Nov 20, 2008 11:15 pm
- Forum: C++ Development
- Topic: How insert integer into wxString??
- Replies: 2
- Views: 677
Code: Select all
wxString mystring;
mystring = mystring + wxString::Format("%d",myinteger);
- Fri Nov 14, 2008 8:14 am
- Forum: C++ Development
- Topic: wxBoxSizer Layout Problem (xwNewbie...)
- Replies: 11
- Views: 2194
- Fri Nov 14, 2008 1:28 am
- Forum: C++ Development
- Topic: wxBoxSizer Layout Problem (xwNewbie...)
- Replies: 11
- Views: 2194
Did you try making these calls:
after this?
Code: Select all
topSizer->Fit( this ); // fit the dialog to the contents
topSizer->SetSizeHints( this ); // set hints to honor min size
Code: Select all
SetSizer( topSizer );
- Wed Nov 12, 2008 12:49 am
- Forum: C++ Development
- Topic: How/where is wx/ defined for MSW?
- Replies: 6
- Views: 1056
- Mon Nov 03, 2008 5:51 pm
- Forum: C++ Development
- Topic: Not able to open existing excel file
- Replies: 2
- Views: 738
I think you need to use a different method for Excel:
I didn't try it, but it should work.
Code: Select all
excelObj.CallMethod("Workbooks.Open, docPath);
- Fri Oct 31, 2008 5:21 pm
- Forum: C++ Development
- Topic: wxAutomationObject(opening a existing doc problem)
- Replies: 5
- Views: 1271
- Fri Oct 31, 2008 9:21 am
- Forum: C++ Development
- Topic: wxAutomationObject(opening a existing doc problem)
- Replies: 5
- Views: 1271
- Fri Oct 24, 2008 10:30 pm
- Forum: wxDev-C++
- Topic: whick radio box is checked?
- Replies: 9
- Views: 1703
- Fri Oct 24, 2008 8:42 pm
- Forum: wxDev-C++
- Topic: whick radio box is checked?
- Replies: 9
- Views: 1703
No, it doesn't have to be Modal. If you want to do what you describe, maybe you should have a member variable in your application and create the frame using new in your dialog. Something like this: //declared in myApp? JuntasFrm* myJuntasFrm; void RobotsDlg::btnOKClick(wxCommandEvent& event) { // in...
- Fri Oct 24, 2008 6:13 pm
- Forum: wxDev-C++
- Topic: whick radio box is checked?
- Replies: 9
- Views: 1703
yea.. i tried this: /* * btnOKClick */ void RobotsDlg::btnOKClick(wxCommandEvent& event) { // insert your code here int GetSelection(); if (rdbNumRobots->GetSelection() == 0) { JuntasFrm TempJuntasFrm(this); TempJuntasFrm.Show(); } ) and it's compiling.. but when i press the button OK, it's not ope...
- Thu Oct 23, 2008 6:28 pm
- Forum: wxDev-C++
- Topic: whick radio box is checked?
- Replies: 9
- Views: 1703
- Mon Oct 06, 2008 7:12 pm
- Forum: C++ Development
- Topic: How getting the current position in a TxtCtrl ?
- Replies: 2
- Views: 757
- Wed Oct 01, 2008 7:12 am
- Forum: General Development
- Topic: How to display char buffer in a wxTextCtrl?
- Replies: 13
- Views: 2236
I tried this: wxString filename; wxFileDialog fdlog(this, "Open a file","","","*.*"); if(fdlog.ShowModal() != wxID_OK) return; filename = fdlog.GetPath(); wxFFile ResultsFile; ResultsFile.Open(filename,wxT("r")); size_t qq = ResultsFile.Length(); wxString rr; ResultsFile.ReadAll(&rr, wxConvUTF8); Wx...
- Tue Sep 30, 2008 7:13 pm
- Forum: General Development
- Topic: How to display char buffer in a wxTextCtrl?
- Replies: 13
- Views: 2236
did you:
#include <wx/string.h>
Also, for David's suggestion, you should do something more like:
#include <wx/string.h>
Also, for David's suggestion, you should do something more like:
Code: Select all
size_t qq = ResultsFile.Length();
wxString rr;
ResultsFile.ReadAll(&rr, wxConvUTF8);
ID_ResultsBox->Replace(0, qq, rr);