Search found 18 matches

by Jasper
Mon Aug 15, 2005 9:17 am
Forum: C++ Development
Topic: Problem displaying UTF-8 from within wxHtml*
Replies: 1
Views: 699

The problem appears to be that wxEncodingConverter doesn't support UTF-8 (at least not on win32?). The actual code constructing the encoding converter is in SetInputEncoding in src/html/winpars.cpp. Is it possible to convert from UTF-8 using wxEncodingConverter? If so, what do I need to change/confi...
by Jasper
Sun Aug 14, 2005 11:26 am
Forum: C++ Development
Topic: Problem displaying UTF-8 from within wxHtml*
Replies: 1
Views: 699

Problem displaying UTF-8 from within wxHtml*

For the sake of maximum interoperability I tried to use UTF-8 as the encoding for my help files (saved as UTF-8 and added the meta tag as indicated in "Writing non-English applications" in the manual). However, when I try to view a page encoded in UTF-8 with wxHtmlWindow or through the wxHtmlHelpCon...
by Jasper
Sun Jul 31, 2005 11:26 am
Forum: Platform Related Issues
Topic: Can't get wxScrolledWindow to show scrollbars on Mac OS X.
Replies: 7
Views: 1904

I just found that it doesn't work on Win32 too in fact, sorry for the confusion. I didn't notice this earlier because until very recently I still used wxWidgets 2.4.2 on Win32, while I used wxWidgets 2.6.1 on the Mac. This also led me to the solution, I was still using some code that used sizers in ...
by Jasper
Sat Jul 30, 2005 8:15 am
Forum: Platform Related Issues
Topic: Can't get wxScrolledWindow to show scrollbars on Mac OS X.
Replies: 7
Views: 1904

Refreshing and/or resizing didn't help (and the virtual size was bigger than the window size), but I think I may have figured out what triggers the problem. The scrolled window(s) are children of a wxNotebook (I also tried wxListbook btw, with the same result), but when I create a scrolled window us...
by Jasper
Fri Jul 29, 2005 3:25 pm
Forum: Platform Related Issues
Topic: Can't get wxScrolledWindow to show scrollbars on Mac OS X.
Replies: 7
Views: 1904

That's what I'm doing, and I've also tried SetScrollBars, both don't work for me (and it does work on Win32 btw). I'm currently calling the following:

Code: Select all

  SetVirtualSize(width_p, height_p);
  SetScrollRate(5,5);
Are there any relevant defines?
by Jasper
Thu Jul 28, 2005 9:53 am
Forum: Platform Related Issues
Topic: Can't get wxScrolledWindow to show scrollbars on Mac OS X.
Replies: 7
Views: 1904

Can't get wxScrolledWindow to show scrollbars on Mac OS X.

I'm porting an application from Windows to Mac OS X. Since I used wxWidgets this has been a reasonably painless experience (apart from some cosmetic problems and occasional breakage due to use of undefined behaviour). There is however one problem that doesn't seem to want to go away. For some reason...
by Jasper
Wed Dec 29, 2004 1:38 pm
Forum: C++ Development
Topic: Registry Programming
Replies: 9
Views: 2801

I think you misunderstood how to use the QueryValue function, as far as I can see the first parameter is the name of the value to query and the second is where the value should be stored. So something like this should be more like what you want: pRegKey->QueryValue("valuename", strValue); In this ca...
by Jasper
Sat Dec 04, 2004 5:44 pm
Forum: C++ Development
Topic: How to get printer list?
Replies: 8
Views: 2400

I don't know about the original poster, but in my case I'd like to be able to retrieve a list of printers to show in a combobox for example (I currently use more or less what you posted, but that isn't very natural in my case).
by Jasper
Sat Dec 04, 2004 3:58 pm
Forum: C++ Development
Topic: Is there a maximum width for wxPaintDC?
Replies: 2
Views: 896

I've had some cases where the bitmap was too large, but in that case it simply refused to create the DC. I never saw what you're describing, but you may want to pin it down a bit more: Does height matter at all What is the EXACT limit Which step appears to be the limiting factor (you say you can bli...
by Jasper
Sat Dec 04, 2004 3:47 pm
Forum: C++ Development
Topic: How to get printer list?
Replies: 8
Views: 2400

I'd definitely like to now this too, at the moment I just show a print dialog to let the user select a printer, which isn't particularly nice.
by Jasper
Sat Dec 04, 2004 3:32 pm
Forum: Platform Related Issues
Topic: How to speed up GUI redraw?
Replies: 4
Views: 2043

BTW, double-buffering is a scheme in which you draw on a memory dc and then display that when you've finished drawing, instead of drawing directly to the screen.
by Jasper
Sat Dec 04, 2004 3:31 pm
Forum: Platform Related Issues
Topic: How to speed up GUI redraw?
Replies: 4
Views: 2043

How do you handle drawing the guage vs. the text? If the text doesn't draw at all and a sleep solves the problem it sounds to me like your progress bar update function is blocking the main event loop (although I still wouldn't now why it wouldn't draw at all, but I don't know exactly what you're doi...
by Jasper
Tue Nov 23, 2004 10:02 am
Forum: Component Writing
Topic: Autocomplete text control (and its problems)
Replies: 5
Views: 2568

Did you consider using a combobox? I think this would solve at least a few problems.
by Jasper
Mon Sep 27, 2004 2:51 pm
Forum: C++ Development
Topic: Having problems with print scaleing
Replies: 3
Views: 1923

I have a render class (Renderer) which uses the class containing the code I posted previously (lets say P) to transform all its dimensions (in mm) to pts and draw onto the DC (except for line widths and font sizes). So the actual code where ptspermmx and ptspermmy are used looks like this (don't min...
by Jasper
Sun Sep 26, 2004 10:34 am
Forum: General Development
Topic: Pen questions
Replies: 3
Views: 1617

I've modified the checks in pen.cpp a bit and I think it's more correct (and at least easier to understand) now, although there might still exist some cases that could be handled better. I submitted the patch to the patch manager at SF (request-id 1034942). Any ideas on the issue of lines being draw...