Search found 186 matches

by geralds
Mon Feb 20, 2006 9:23 pm
Forum: C++ Development
Topic: Error dialog
Replies: 5
Views: 1446

Thanks for your suggestions! I'm quite sure it's "wx/generic/logg.cpp" (I think it stands for Log GUI but I may be wrong). Here's the relevant passage: wxLogDialog::wxLogDialog(wxWindow *parent, const wxArrayString& messages, const wxArrayInt& severity, const wxArrayLong& times...
by geralds
Mon Feb 20, 2006 8:35 pm
Forum: Announcements and Discoveries
Topic: Fast, no-frills XML editor
Replies: 0
Views: 1010

Fast, no-frills XML editor

Here's a first Alpha of the project I've been working on recently. Many thanks to all who have replied to my questions!

http://xml-copy-editor.sourceforge.net

(The installer is Windows only for now, but the source should compile elsewhere without too much trouble.)
by geralds
Mon Feb 20, 2006 12:26 pm
Forum: C++ Development
Topic: Error dialog
Replies: 5
Views: 1446

Error dialog

The file <wx/generic/logg.cpp> defines an excellent wxLogDialog class that is used by many of the wxW classes to report errors. Is it possible to use this dialog in our own applications? <wx/generic/logg.h> does not mention this class, and I can't seem to find any examples online. I'd be very gratef...
by geralds
Sat Jan 28, 2006 10:01 pm
Forum: C++ Development
Topic: wxString to std::string
Replies: 9
Views: 2803

Hm, std::string is not supporting UNICODE right now, and it probably will be a long time, until it does. wxWidgets supports UNICODE, and since the std::string class is not the best of STL, I wouldn't bet on a replacement of wxString with std::string. phlox phlox, I've just read your message and I d...
by geralds
Sat Jan 28, 2006 9:56 pm
Forum: C++ Development
Topic: wxString to std::string
Replies: 9
Views: 2803

This doesn't address the issue of encodings, especially if you're using the Unicode build. Just in case you're thinking of using it, the following should work: // Unicode wxString to std::string wxString ws = _T("..."); std::string s = ws.mb_str(wxConvUTF8); // std::string to Unicode wxStr...
by geralds
Thu Jan 26, 2006 2:24 pm
Forum: C++ Development
Topic: Button Look and feel problem
Replies: 14
Views: 3956

Muhammad, this is a very rushed reply. I think you need to enable XP themes. Just add the following include to your .rc file:

Code: Select all

#include "wx/msw/wx.rc"
I hope this works!
by geralds
Thu Jan 26, 2006 1:38 pm
Forum: C++ Development
Topic: Icons in status bar
Replies: 0
Views: 590

Icons in status bar

How can I ensure that the background of a wxStaticBitmap resting on top of a status bar is transparent? The Windows statbar sample uses miniature xpm files that work fine, but how can I reproduce this effect with standard .bmp files? Would it be possible to use .png images instead (or would they los...
by geralds
Fri Jan 20, 2006 2:57 pm
Forum: C++ Development
Topic: CreateTempFileName not working as expected
Replies: 2
Views: 1190

Datagenn, one thing you could consider is passing a full path (directory + filename) to CreateTempFileName(). The function will identify a new filename in the same directory.
by geralds
Sat Jan 07, 2006 10:05 pm
Forum: C++ Development
Topic: Is there a wxTab?
Replies: 6
Views: 1926

by geralds
Thu Jan 05, 2006 12:29 pm
Forum: Platform Related Issues
Topic: How to port my Linux WX app to Windows?
Replies: 18
Views: 4816

2.2 MB sounds like a fair size to me.
by geralds
Tue Jan 03, 2006 11:07 pm
Forum: C++ Development
Topic: PowerPoint Presentation into wxWidgets
Replies: 4
Views: 1492

I may be wrong, but I don't think there is a reliable route that does not use automation. *.ppt documents are binary files that cannot normally be decoded by any program other than PowerPoint. It's much the same as *.doc files: it's possible to hack the basic structure (they all start with a four-by...
by geralds
Tue Jan 03, 2006 12:59 pm
Forum: C++ Development
Topic: PowerPoint Presentation into wxWidgets
Replies: 4
Views: 1492

dsk, you could consider automating PowerPoint to do this. Just check out the oleauto sample. The sample is for Excel, but Word, IE, PowerPoint all permit access in this way. You just need to create an application object (just use "PowerPoint.Application" instead of "Excel.Application&...
by geralds
Fri Dec 23, 2005 1:59 pm
Forum: C++ Development
Topic: wxListCtrl w/ checkbox
Replies: 11
Views: 4299

Fair point. If I work out how it's done, I will certainly post it here.
by geralds
Thu Dec 22, 2005 2:07 pm
Forum: C++ Development
Topic: wxListCtrl w/ checkbox
Replies: 11
Views: 4299

rz is making an important point here. wxListCtrl lacks a widely used property of the Win32 ListView control in report mode. (Win32 even offers convenience functions for checking and unchecking items.) I wrote my own wrapper for a Win32 ListView a while back (before I discovered wxWidgets!) and it's ...
by geralds
Wed Dec 21, 2005 12:24 pm
Forum: C++ Development
Topic: wxFindReplaceDialog and wxStyledTextCtrl
Replies: 1
Views: 782

OK, I think I've got it working now