Search found 60 matches

by Jive Dadson
Sun Oct 14, 2012 9:39 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 4796

Re: wxPaintDC does not always paint the damaged area

I found the problem. It's the clipping regions. (Thanks, doublemax.) The program is painting all the clipped regions it is told to, and painting them accurately. Either some regions are too small, or some get lost somehow so the OnPaint never sees them. I instrumented the OnPaint handler to monitor ...
by Jive Dadson
Sun Oct 14, 2012 5:50 am
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 4796

wxPaintDC does not always paint the damaged area

My "issue" is explained in gory detail on StackOverflow. http://stackoverflow.com/questions/12877307/bands-of-background-color-show-when-painting-image-as-it-is-uncovered Cliff Notes version: wxPaintDC leaves bands of background color when I uncover parts of my app by dragging away a window that was...
by Jive Dadson
Sat Sep 29, 2012 8:03 am
Forum: C++ Development
Topic: File drop-target example? [Solved]
Replies: 2
Views: 1279

Re: File drop-target example?

Thanks much! I will give it a try.
by Jive Dadson
Sat Sep 29, 2012 12:04 am
Forum: C++ Development
Topic: File drop-target example? [Solved]
Replies: 2
Views: 1279

File drop-target example? [Solved]

Is there an example in the "samples" code or elsewhere that demonstrates accepting an object (an image file, ideally) that the user has dragged from "outside" into a frame, without getting into the more general topic of drag-and-drop?
by Jive Dadson
Thu Sep 27, 2012 5:59 am
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Re: Font that shows up well on any background

I added painting the background because before I did, whenever I made the panel larger with my mouse, the part that got uncovered was not painted. It does not appear to be necessary when I do the Refresh() thing rather than the PaintNow() thing. Well, whatever. It is working now. IOW, IIAGMTM - SV, ...
by Jive Dadson
Wed Sep 26, 2012 10:17 pm
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Re: Font that shows up well on any background

Release candidate. CamelBackNames to match wxWidgets. Not my first choice by any means. // Not to be called directly. Use "paintNow" instead. void djStaticText::OnPaintEvent(wxPaintEvent &) { wxPaintDC dc(this); Render(dc); } void djStaticText::PaintNow() { wxClientDC dc(this); Render(dc); } void dj...
by Jive Dadson
Wed Sep 26, 2012 10:12 pm
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Re: Font that shows up well on any background

No doubt that is correct. My culpa. I do not know what IOW stands for. I googled it (duckduckgo'ed it, actually), and came up with "Inert Ordinance Wearhouse," and "Infected Open Wound."
by Jive Dadson
Wed Sep 26, 2012 4:05 am
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Re: Font that shows up well on any background

Okay, I gave it a go. void djStaticText::render(wxDC& dc) { wxString label = GetLabel(); dc.Clear(); SetForegroundColour(wxColor("BLACK")); dc.DrawText(label, wxPoint(0,0)); dc.DrawText(label, wxPoint(0,2)); dc.DrawText(label, wxPoint(2,0)); dc.DrawText(label, wxPoint(2,2)); SetForegroundColour(wxCo...
by Jive Dadson
Wed Sep 19, 2012 10:55 pm
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Re: Font that shows up well on any background

I don't have a magic solution. but if performance is not too critical, one not-too-clean but working hack you could do it render the text in white 4 times, at (x - 2, y - 2), (x - 2, y + 2), (x + 2, y - 2), (x + 2, y + 2). And then once render in black at (x, y). I do that in one project and it's q...
by Jive Dadson
Wed Sep 19, 2012 10:48 pm
Forum: Component Writing
Topic: rs232
Replies: 3
Views: 7116

Re: rs232

What he said. You do not want to mix the rs232 code into the wxWidget code. The rule of thumb is to keep the interface and the implementation separate. I let a boss of me talk me into breaking that rule once, for expediency, and we both lived to rue the day. Where was I? Oh yes. RS232. It is a bear....
by Jive Dadson
Tue Sep 18, 2012 7:41 pm
Forum: Component Writing
Topic: Font that shows up well on any background
Replies: 8
Views: 8403

Font that shows up well on any background

I need a font that shows up well on any background. Otherwise it should be nondescript. The usual trick is to have a light color with a dark outline on each letter. Some transparency might be nice. The font must render in neutral grays, no chroma. Currently I am using SWISS and changing the value of...
by Jive Dadson
Sun Sep 09, 2012 6:05 pm
Forum: Compiler / Linking / IDE Related
Topic: unresolved external symbols
Replies: 1
Views: 5356

unresolved external symbols

I am trying to use wx static libraries with VC++ 2010. I think I am that close. I got two of the sample programs to run. Now for my application. It has 24 unresolved symbols. I am including all the libs that the dll version requires, plus a few that I threw in hoping for the best. What am I missing?...
by Jive Dadson
Fri Sep 07, 2012 7:44 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidget binaries problem
Replies: 1
Views: 589

Re: wxWidget binaries problem

Are you sure the file you saw was named "'wxbase29ud.lib" with a "d"? Check again. The "d" stands for "debug." I downloaded the binary distribution very recently, and the one that I got did not include any debug libs. It only contained DLL's with no debug symbols, and the related .lib's.
by Jive Dadson
Fri Sep 07, 2012 7:31 pm
Forum: Compiler / Linking / IDE Related
Topic: The operation failed successfully
Replies: 3
Views: 1500

The operation failed successfully

First the good news. I finally got my old project running with the latest-and-greatest wxWidgets. Woo. When the program starts up and loads the wxWidgets DLL, my IDE (VC++ 2010 Express) tells me, ..\..\src\msw\toolbar.cpp(260): 'TB_GETITEMRECT' failed with error 0x00000000 (the operation completed s...
by Jive Dadson
Fri Sep 07, 2012 12:43 am
Forum: Compiler / Linking / IDE Related
Topic: FAQ for IDE related issues v2
Replies: 19
Views: 37985

Re: FAQ for IDE related issues v2

I just got through fighting this one for, I think, the third time. A few years will pass and I will need to upgrade wxWidgets again, and I will have forgotten again. I think it is a rite of passage for Windoze captives. Here's what you do. Reverse any changes you might have made to source files and ...