Search found 114 matches

by stevelam
Mon Jul 13, 2009 1:30 pm
Forum: C++ Development
Topic: How to save encrypted password in the configration file
Replies: 3
Views: 1606

Well for reading and writing to a config file see the wxConfig overveiw and wxConfigBase.
by stevelam
Thu Jul 09, 2009 6:34 am
Forum: Open Discussion
Topic: where is the source code? Source forge? Nope!
Replies: 1
Views: 1552

Try the mirrors here :)
by stevelam
Sat Jul 04, 2009 8:07 am
Forum: C++ Development
Topic: Advanced resizing of elements in sizers
Replies: 4
Views: 1520

I think you could do it all with a single wxGridBagSizer, something like this (untested): Create(parent, wxID_ANY, _("NeoKiller"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY")); vbsMain = new wxGridBagSizer(); vbsMain->AddGrowableCol(1); vbsMain->AddGro...
by stevelam
Fri Jun 26, 2009 7:41 am
Forum: C++ Development
Topic: wxBitmap access violation.
Replies: 8
Views: 2339

To me your If - Else If block that sets the file type looks a little suspect, I would try changing this: if (File.AfterLast(wxT('.')) == wxT(".gif")) { Type = wxBITMAP_TYPE_GIF; } else if (File.AfterLast(wxT('.')) == wxT(".jpg")) { Type = wxBITMAP_TYPE_JPEG; } else if (File.After...
by stevelam
Sat Jun 20, 2009 10:38 am
Forum: C++ Development
Topic: wxString vs wxArrayString vs wxString array
Replies: 8
Views: 2680

I don't mean to seem negative, but you could always test and find out, I would be very surprised if with 100 strings that there was a major difference (apart from the code nightmare that 100 individual variables would bring)! According to the wxArrayString docs: but the access time to the elements i...
by stevelam
Tue Jun 16, 2009 8:26 am
Forum: C++ Development
Topic: wxGetApp() not working
Replies: 30
Views: 7503

I think you need to use

wxGetApp().m_esplfrae->m_statusbar->SetStatusText();

Note the . rather than the -> after wxGetApp()
by stevelam
Thu Jun 11, 2009 10:30 am
Forum: C++ Development
Topic: wxGetApp() not working
Replies: 30
Views: 7503

In all of the classes that would want to use wxGetApp() from as far as I know.
by stevelam
Thu Jun 11, 2009 8:26 am
Forum: C++ Development
Topic: Can't load PNG files in wxImage?
Replies: 2
Views: 3121

Do you call wxImage::AddHandler(wxPNGHandler) or wxInitAllImageHandlers? If not you will need to as they initialise support for various image handlers. I think the reason BMPs are working is because that handler is added by default :)
by stevelam
Thu Jun 11, 2009 8:21 am
Forum: C++ Development
Topic: wxGetApp() not working
Replies: 30
Views: 7503

In your classes you will need to include MyApp.h :)
by stevelam
Wed Jun 10, 2009 6:00 pm
Forum: C++ Development
Topic: wxListView autoscroll
Replies: 2
Views: 954

When adding an item just call wxListCtrl::EnsureVisible on that item. You might need to update the control afterwards too.
by stevelam
Mon Jun 08, 2009 9:49 am
Forum: C++ Development
Topic: How to implement this dialog?(like wxfiledialog,but enhance)
Replies: 3
Views: 1231

As far as I can see this can only be done in 2.9 using wxFileDialog::SetExtraControlCreator, hope that helps!
by stevelam
Fri Mar 06, 2009 5:01 pm
Forum: C++ Development
Topic: hidden commandline-tool
Replies: 3
Views: 1409

Or like this:

Code: Select all

wxArrayString output, errors;
wxString cmdLine;
wxExecute (cmdLine, output, errors, wxEXEC_SYNC);
by stevelam
Sun Feb 22, 2009 8:43 am
Forum: C++ Development
Topic: How to determine that is a file or a folder ?
Replies: 2
Views: 1048

Code: Select all

wxDirExists
and

Code: Select all

wxFileExists
should be what you want.

However for your function you might also be interested in looking at

Code: Select all

wxDirTraverser
which recurses through file and folders, you could check to see if it is the file you wanted in the OnFile function.
by stevelam
Wed Oct 29, 2008 5:56 pm
Forum: C++ Development
Topic: Realtime Plotting?
Replies: 4
Views: 1989

It would seem that the real repository is here, the docs directory should help you.
by stevelam
Wed Sep 24, 2008 3:32 pm
Forum: C++ Development
Topic: No image handler for type 17 defined
Replies: 8
Views: 5710

You could use a

Code: Select all

wxStaticBitmap
But I believe the preferred way to do it is to paint it onto a wxPanel.