Search found 148 matches

by timg
Mon Nov 24, 2008 8:27 pm
Forum: C++ Development
Topic: telescopic frames or dialogs
Replies: 3
Views: 526

Did you look at the MDI sample in the samples directory?

I think this does what you want.
by timg
Thu Nov 20, 2008 11:15 pm
Forum: C++ Development
Topic: How insert integer into wxString??
Replies: 2
Views: 495

Code: Select all


wxString  mystring;

mystring = mystring + wxString::Format("%d",myinteger);

by timg
Fri Nov 14, 2008 8:14 am
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 1575

Why are you setting the size of your wxTextCtrl to wxDefaultSize ?
by timg
Fri Nov 14, 2008 1:28 am
Forum: C++ Development
Topic: wxBoxSizer Layout Problem (xwNewbie...)
Replies: 11
Views: 1575

Did you try making these calls:

Code: Select all

    topSizer->Fit( this );          // fit the dialog to the contents
    topSizer->SetSizeHints( this ); // set hints to honor min size
after this?

Code: Select all

    SetSizer( topSizer );
by timg
Wed Nov 12, 2008 12:49 am
Forum: C++ Development
Topic: How/where is wx/ defined for MSW?
Replies: 6
Views: 708

You want to put it in the Project Properties under C++->General->Additional Include Directories
by timg
Mon Nov 03, 2008 5:51 pm
Forum: C++ Development
Topic: Not able to open existing excel file
Replies: 2
Views: 547

I think you need to use a different method for Excel:

Code: Select all

excelObj.CallMethod("Workbooks.Open, docPath);
I didn't try it, but it should work.
by timg
Fri Oct 31, 2008 5:21 pm
Forum: C++ Development
Topic: wxAutomationObject(opening a existing doc problem)
Replies: 5
Views: 988

I only have Word 2003. It works with that.
by timg
Fri Oct 31, 2008 9:21 am
Forum: C++ Development
Topic: wxAutomationObject(opening a existing doc problem)
Replies: 5
Views: 988

Your code works for me. Are you sure the document exists?
by timg
Fri Oct 24, 2008 10:30 pm
Forum: wxDev-C++
Topic: whick radio box is checked?
Replies: 9
Views: 1282

It's probably deleting your pointers when the Dialog is detroyed and deleting whatever it is that they are pointing to.

Try putting the pointer variables into whatever it is that creates the Dialog.
by timg
Fri Oct 24, 2008 8:42 pm
Forum: wxDev-C++
Topic: whick radio box is checked?
Replies: 9
Views: 1282

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...
by timg
Fri Oct 24, 2008 6:13 pm
Forum: wxDev-C++
Topic: whick radio box is checked?
Replies: 9
Views: 1282

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...
by timg
Thu Oct 23, 2008 6:28 pm
Forum: wxDev-C++
Topic: whick radio box is checked?
Replies: 9
Views: 1282

If you are using a wxRadioBox, why would you not use GetSelection()?
by timg
Mon Oct 06, 2008 7:12 pm
Forum: C++ Development
Topic: How getting the current position in a TxtCtrl ?
Replies: 2
Views: 560

Is there some reason you can't use wxTextCtrl::GetInsertionPoint() ?
by timg
Wed Oct 01, 2008 7:12 am
Forum: General Development
Topic: How to display char buffer in a wxTextCtrl?
Replies: 13
Views: 1756

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...
by timg
Tue Sep 30, 2008 7:13 pm
Forum: General Development
Topic: How to display char buffer in a wxTextCtrl?
Replies: 13
Views: 1756

did you:

#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);