Search found 186 matches

by geralds
Sat Dec 09, 2006 1:03 pm
Forum: C++ Development
Topic: Communicating with Outlook
Replies: 9
Views: 1724

Raits, I haven't replied so far because I haven't tried automating Outlook, but the best route is generally to do what you need to do in VBA (say, write a Word macro that does it) and then rewrite it as IDispatch commands. Generally you need the application string to activate the automation server (...
by geralds
Sat Dec 09, 2006 12:52 pm
Forum: C++ Development
Topic: Vertical placement of controls in horizontal box sizer
Replies: 2
Views: 626

Thanks Scott, that's exactly what was missing!
-Gerald
by geralds
Fri Dec 08, 2006 2:15 pm
Forum: C++ Development
Topic: Vertical placement of controls in horizontal box sizer
Replies: 2
Views: 626

Vertical placement of controls in horizontal box sizer

I am using a horizontal box sizer in a panel for the following: Find: _______ Replace with: _______ [Go] i.e. I have two wxStaticTexts as labels, two wxTextCtrls as edit boxes and a wxButton. The problem is that the two labels (Find: and Replace with:) are positioned too high: I'd like them to line ...
by geralds
Mon Dec 04, 2006 7:50 pm
Forum: C++ Development
Topic: HTML Editor in wxWidgets?
Replies: 9
Views: 2090

No, I'm afraid that's one thing it can't do.
by geralds
Sun Dec 03, 2006 10:43 pm
Forum: C++ Development
Topic: HTML Editor in wxWidgets?
Replies: 9
Views: 2090

Sof_T, that's very true but still underselling wxSTC and classes based on it. Scintilla is the industry standard for source editing, with folding, syntax colouring, indicators, icon margins, element hiding, etc. already in place. Ordinary edit controls just aren't in the same league. eMul, if you'd ...
by geralds
Sat Dec 02, 2006 1:46 pm
Forum: C++ Development
Topic: How can I read/write excel file without open it?
Replies: 7
Views: 1535

You may be able to open the file by linking to portions of the OpenOffice.org libraries (I gather the OOo developers have worked very hard to be able to open the binary *.xls, *.doc and *.ppt formats). The only thing you can depend on when opening the binary documents yourself is the binary Office s...
by geralds
Wed Nov 29, 2006 9:34 am
Forum: C++ Development
Topic: Segfault when calling wxWindow::GetSize()
Replies: 4
Views: 968

doublemax, you were right! My mistake was that I issued a SetSize command from within the constructor, _before_ creating edit and list. Initialising them first solved the problem. Thank you very much!
by geralds
Tue Nov 28, 2006 9:11 pm
Forum: C++ Development
Topic: Segfault when calling wxWindow::GetSize()
Replies: 4
Views: 968

doublemax: thanks, I will try this tomorrow. Do I still need to initialize to 0 even though edit and list (which are private data members) are allocated using new in the constructor? My understanding was that no size events are sent to the object until the constructor has finished. InsertPanel::Inse...
by geralds
Tue Nov 28, 2006 5:19 pm
Forum: C++ Development
Topic: Segfault when calling wxWindow::GetSize()
Replies: 4
Views: 968

Segfault when calling wxWindow::GetSize()

I have got several instances of a class InsertPanel that contains a single-line wxTextCtrl at the top and a wxListBox filling the rest of the panel's client space. When the content of the list box (or the size of the application window) changes, the list box does not resize correctly (the scrollbar ...
by geralds
Mon Nov 27, 2006 11:41 am
Forum: C++ Development
Topic: How to install scintilla
Replies: 1
Views: 998

If I remember correctly, when you have compiled wxGTK, you can cd to contrib/src/stc (for wxStyledTextCtrl) and use the make+make install command as usual. For example: $ cd wxGTK-2.7.1 $ mkdir buildstatic $ cd buildstatic $ ../configure --enable-unicode --disable-shared $ make $ [as root] make inst...
by geralds
Thu Nov 23, 2006 11:37 am
Forum: C++ Development
Topic: wxAUI Errors and Memory Leaks
Replies: 7
Views: 1297

If you encounter this problem, see http://www.kirix.com/community/forums// ... 3864381135.
by geralds
Wed Nov 22, 2006 10:04 pm
Forum: Platform Related Issues
Topic: Poor performance of wxStyledTextCtrl::Colourise on wxMac
Replies: 3
Views: 667

yvanix, I haven't used wxSTC on a Mac, but I know that 2.6.3 used a very old version of Scintilla, and that a lot of work on the Mac port went into the 2.7 development releases and now the 2.8 release candidate. My recommendation would be to recompile with 2.8 (or the most recent snapshot) first. If...
by geralds
Wed Nov 22, 2006 9:48 pm
Forum: C++ Development
Topic: cannot show menubar on Windows Mobile 2005?
Replies: 2
Views: 453

Can't say I've tried it on WinMobile, but you could look into Eran's wxFlatMenu (see http://forums.wxwidgets.org/viewtopic.php?t=10762 for screenshots and discussion and https://opensvn.csie.org/wxFlatMenu/ for the source files). If wxAUI and wxFlatNotebook work, Eran's menu should work, too! (Besid...
by geralds
Mon Nov 13, 2006 9:28 am
Forum: C++ Development
Topic: Western European (ISO-8859-1)
Replies: 6
Views: 1436

Your best bet might be to look outside wxW. libxml for example uses iconv, which I think is the best conversion library available. See http://www.gnu.org/software/libiconv/ for details. I could imagine wxW's conversions are themselves based on iconv, though sometimes I prefer to use libraries direct...
by geralds
Fri Nov 10, 2006 9:18 pm
Forum: C++ Development
Topic: Encoding conversions
Replies: 2
Views: 606

AFAIK the only safe way of doing this is by using a parser. libxml for example will read any valid HTML document/well-formed XML document and convert it to the target encoding. Just parse the document and then dump the document tree to memory or a file. (libxml will correct both the XML declaration ...