Search found 186 matches

by geralds
Wed Jun 21, 2006 9:52 pm
Forum: Compiler / Linking / IDE Related
Topic: wxStyledTextCtrl 'undefined reference' error in Linux
Replies: 2
Views: 697

Thanks benedicte, I finally got it to work by compiling wxStyledTextCtrl as a shared library. (libxslt and wxStyledTextCtrl are the only libraries that pose this problem for my project.) I'm happy to use the shared libraries for now and I'm delighted to have my whole application compile under Linux ...
by geralds
Wed Jun 21, 2006 3:28 pm
Forum: Compiler / Linking / IDE Related
Topic: wxStyledTextCtrl 'undefined reference' error in Linux
Replies: 2
Views: 697

wxStyledTextCtrl 'undefined reference' error in Linux

I get a linker error from /usr/local/lib/libwx_gtk2u_stc-2.6.a.

In function wxStyledTextCtrl::OnScroll: undefined reference to wxScrollBar::ms_classInfo.

Further errors point to stc.cpp.

What is going wrong? How can I fix it?
by geralds
Wed Jun 14, 2006 4:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Fedora Core 5: building contrib/stc
Replies: 2
Views: 1947

Thanks, I'll have another look...
by geralds
Wed Jun 14, 2006 11:29 am
Forum: wxCode
Topic: WxScintilla Help
Replies: 9
Views: 2547

You could try the following to apply syntax colouring (the example is for XML, but you could use any lexer here): SetLexer(wxSTC_LEX_XML); StyleSetForeground(wxSTC_STYLE_DEFAULT, *wxBLACK); StyleSetBackground(wxSTC_STYLE_DEFAULT, *wxWHITE); StyleClearAll(); StyleSetForeground(wxSTC_H_TAG, *wxBLUE); ...
by geralds
Wed Jun 14, 2006 11:08 am
Forum: Compiler / Linking / IDE Related
Topic: Fedora Core 5: building contrib/stc
Replies: 2
Views: 1947

Fedora Core 5: building contrib/stc

How do I go about building contrib/stc in Fedora Core 5? wxW compiles without problems, but what is the best way of building the contrib classes?

My current wxW build is configured as follows:

Code: Select all

../configure --enable-unicode --disable-shared --with-gtk
by geralds
Wed Jun 07, 2006 9:23 am
Forum: Component Writing
Topic: wxCoolBar updates
Replies: 1
Views: 1222

wxCoolBar updates

Is anyone maintaining wxCoolBar? I know a lot of people are migrating to wxAUI and others, but so far I haven't seen anything that beats the look and feel of native rebar controls on MSW. The issue is that Martin's excellent rebar wrapper feels incomplete: for example, function keys call up debug me...
by geralds
Wed May 31, 2006 4:16 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Win32 wx application on Linux
Replies: 2
Views: 733

That's very helpful. Thanks!
by geralds
Sun May 28, 2006 8:31 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Win32 wx application on Linux
Replies: 2
Views: 733

Compiling Win32 wx application on Linux

I'd like to compile my Win32 wxWidgets app on Linux and I was wondering how best to go about this. I'm using wxW 2.61 Unicode with Dev-C++/MinGW and I'd like to use the same source files for both compiles. Should I install Linux on a separate partition? Would Ubuntu work? How difficult is it to move...
by geralds
Tue May 16, 2006 3:44 pm
Forum: C++ Development
Topic: wxHtmlWindow and Unicode BOM?
Replies: 3
Views: 1025

UTF-8 displays fine. Just make sure you specify

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
in the header. (The file I tested also has an XML declaration with encoding="UTF-8" but I don't know if wxHtmlWindow needs this.)
by geralds
Tue May 16, 2006 12:53 pm
Forum: C++ Development
Topic: wxHtmlWindow and Unicode BOM?
Replies: 3
Views: 1025

I think you could load the file into memory first, remove the BOM if present and call SetPage instead of LoadPage.
by geralds
Thu May 04, 2006 8:17 am
Forum: C++ Development
Topic: wxLaunchDefaultBrowser
Replies: 7
Views: 1740

Glad to hear it's fixed. I'm using 2.61 Unicode at the moment.
by geralds
Wed May 03, 2006 10:02 pm
Forum: C++ Development
Topic: wxLaunchDefaultBrowser
Replies: 7
Views: 1740

It's even worse if Firefox is your default browser. On my computer (runningWin XP) the command does nothing at all. I had to default to IE via OLE automation to get around this. I hope wxLaunchDefaultBrowser works on other platforms...
by geralds
Wed Apr 05, 2006 3:14 pm
Forum: C++ Development
Topic: parsing in a html document
Replies: 3
Views: 895

The libxml2 wrapper is available at http://wxcode.sourceforge.net/components/wxxml2/.

It should do everything you need.
by geralds
Wed Apr 05, 2006 11:32 am
Forum: C++ Development
Topic: parsing in a html document
Replies: 3
Views: 895

I wouldn't recommend regex parsing. Only a compliant parser can do this reliably. If your input file is well-formed XHTML, you can use any parser you wish. Expat is a good choice (I think there are existing wrappers for wxW; alternatively you could just call the Expat library itself). If you're work...
by geralds
Sun Apr 02, 2006 10:23 am
Forum: Platform Related Issues
Topic: Printing Sample on Mac and Windows
Replies: 6
Views: 1403

If you need fixed positions, wxHtmlEasyPrinting won't be suitable. I use it for text, where HTML's ability to lay out paragraphs is helpful (and setting up headers only takes a couple of seconds). There's no need to limit the content to HTML. I just pour my content into a skeletal HTML doc and repla...