Search found 186 matches

by geralds
Thu Jul 09, 2009 3:18 pm
Forum: C++ Development
Topic: xml and wxHtmlWindow
Replies: 3
Views: 3279

Hi Tony You also need to define the colours that attach to particular styles and then instruct the control to repaint. Can't write in detail right now, but for a (rather untidy) attempt at using XmlCtrl, see: http://xml-copy-editor.svn.sourceforge.net/viewvc/xml-copy-editor/src/xmlctrl.h http://xml-...
by geralds
Tue Jun 24, 2008 11:13 am
Forum: C++ Development
Topic: XML with StyledTextControl
Replies: 4
Views: 5947

What you see at the start of your file is the UTF-8 byte order mark. (I know it's redundant as UTF-8 consists of chains of single-byte units, but some processors _require_ a UTF-8 BOM which is why many editors offer to put it in.) One way of handling this is to strip out the byte order mark before p...
by geralds
Sat Dec 08, 2007 10:46 am
Forum: C++ Development
Topic: Is scintilla updated?
Replies: 2
Views: 2566

Would like to revive Trikko's request - Scintilla has seen * crucial improvements in Unicode handling * separation of style bytes and doc bytes so it's possible to add more indicators for HTML/XML docs recently and I think lots of wxW application are missing out because wxStyledTextCtrl is still sev...
by geralds
Mon Aug 13, 2007 4:38 pm
Forum: Platform Related Issues
Topic: How to catch bad_alloc (or other exceptions) on Linux?
Replies: 3
Views: 6049

Sorry about late reply! Thanks for your help.
by geralds
Wed Aug 01, 2007 12:47 pm
Forum: Platform Related Issues
Topic: How to catch bad_alloc (or other exceptions) on Linux?
Replies: 3
Views: 6049

How to catch bad_alloc (or other exceptions) on Linux?

How do I catch exceptions thrown from the main application frame (the MyFrame class in my case)? On XP this works fine but on Linux I get a segfault (the exception just isn't caught).

Where can I find an example that shows me how to get around this?

Thanks!
Gerald
by geralds
Thu May 17, 2007 12:25 pm
Forum: C++ Development
Topic: wxAUI: windows overlap when resized
Replies: 1
Views: 2117

Sorry I can't help but if you post at http://www.kirix.com/community/forums// ... m.php?f=15 one of the developers may be able to help you. (They've been really helpful and prompt in the past.)
by geralds
Tue Apr 03, 2007 9:47 am
Forum: C++ Development
Topic: Automation support for WXwidgets C++
Replies: 10
Views: 8569

by geralds
Mon Mar 26, 2007 9:33 pm
Forum: C++ Development
Topic: how to compare unicode chars?
Replies: 5
Views: 6112

Can't test this right now, but I seem to remember L':' works ok. I've certainly used L"foobar" for Unicode string comparisons in the past.
by geralds
Mon Mar 26, 2007 9:28 pm
Forum: C++ Development
Topic: widget styles ?
Replies: 2
Views: 4565

You need to include <wx/msw/wx.rc> to get XP controls.

See http://wxwidgets.org/docs/faqmsw.htm#winxp for details.

-Gerald
by geralds
Mon Mar 26, 2007 9:25 pm
Forum: C++ Development
Topic: xml and wxHtmlWindow
Replies: 3
Views: 3279

The easiest route is to display the file in a wxStyledTextCtrl window and apply the XML lexer (if you need sample code, let me know).

Just set the window to read-only and you're on your way.

-Gerald
by geralds
Thu Mar 01, 2007 7:48 am
Forum: C++ Development
Topic: Newbie Unicode question - Is this ok?
Replies: 9
Views: 8451

As you say, the gettext route is failsafe (and I wouldn't call this solution a hack), but there simply has to be a way of doing this in the source file (though not necessarily in the IDE). It could be something as simple as a missing byte order mark at the start of the file. Perhaps the IDE defaults...
by geralds
Wed Feb 28, 2007 10:42 pm
Forum: C++ Development
Topic: Newbie Unicode question - Is this ok?
Replies: 9
Views: 8451

You could experiment with source file encodings a little. On MinGW and Dev-C++, for example, Unicode characters need to be entered as UTF-8 even though the IDE displays them as multibyte garbage. I would have expected Visual C++ to handle Unicode characters entered in the IDE out of the box, but it'...
by geralds
Mon Feb 26, 2007 9:02 pm
Forum: Component Writing
Topic: Incremental find/replace pane with regex
Replies: 0
Views: 2106

Incremental find/replace pane with regex

In case anyone else isn't 100% happy with the built-in find/replace dialog, this panel is intended as a drop-in replacement. It uses the standard wxFindReplaceData class so you shouldn't need to change your main frame's find/replace handlers much. (There are some differences, e.g. you will need to d...
by geralds
Fri Feb 23, 2007 3:45 pm
Forum: C++ Development
Topic: Catching Escape in a wxFrame with menubar
Replies: 0
Views: 1800

Catching Escape in a wxFrame with menubar

I think this subject has come up before, but can't seem to find a solution anywhere.

Esc as a menu shortcut never worked on Linux, but was ok up to 2.6.3 on Windows I think. From 2.7 onwards, Windows no longer recognizes Esc.

If I define an accelerator table
by geralds
Fri Feb 23, 2007 3:37 pm
Forum: C++ Development
Topic: wxFindReplaceDialog problem
Replies: 2
Views: 2170

I'd ask the same. If you're interested in incremental find/replace panes for wxStyledTextCtrl (supporting regular expressions), I could post a cheap and cheerful wxPanel-derived solution that works with wxAUI. It's very new and might be buggy (only released it yesterday), but seems to work ok so far...