Search found 33 matches

by marksatterfield
Mon Oct 29, 2018 6:47 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

The problem turned out to be antialiasing because the msw/font.cpp file has hardcoded lf.lfQuality = CLEARTYPE_QUALITY; which requires the antialiasing to be turned on. Changed this to lf.lfQuality = NONANTIALIASED_QUALITY; so antialiasing is not enabled and therefore the magenta background is not g...
by marksatterfield
Fri Oct 26, 2018 6:58 pm
Forum: Platform Related Issues
Topic: wxWidgets & ClearType
Replies: 7
Views: 2116

Re: wxWidgets & ClearType

Thanks! :)
by marksatterfield
Fri Oct 26, 2018 5:25 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

Had video expert looks at my screen and he told me it is definitely antialiasing that is causing the magenta in my white text. I am not defining wxUSE_GRAPHICS_CONTEXT so I don't believe wxGraphicsContext is even involved? I am just trying to make sure antialiasing is not turned on somewhere in wxWi...
by marksatterfield
Fri Oct 26, 2018 4:41 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

This problem is antialiasing issue. Will try to turn it off and see what happens. Does SetAntialiasMode() work in 2.8.3?
by marksatterfield
Fri Oct 26, 2018 4:26 pm
Forum: Platform Related Issues
Topic: wxWidgets & ClearType
Replies: 7
Views: 2116

Re: wxWidgets & ClearType

Did anyone actually post the explanation on how to do this?
by marksatterfield
Thu Oct 25, 2018 1:58 pm
Forum: C++ Development
Topic: Using Raster fonts
Replies: 4
Views: 207

Re: Using Raster fonts

I noticed my fonts are installed under \windows and not \windows\fonts. Is that a problem. This is a windows embedded compact 7 system.
Also if I install raster fonts on my system should I be able to just specify the font name to use those fonts?
by marksatterfield
Wed Oct 24, 2018 7:24 pm
Forum: C++ Development
Topic: Using Raster fonts
Replies: 4
Views: 207

Using Raster fonts

I would like to use raster fonts but not sure wxWidgets will work with .fon files. Also would like to know if I can find source for raster fonts?
by marksatterfield
Wed Oct 17, 2018 7:46 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

This code worked fine in Windows Embedded 6 so it has to be either something defined in the OS or the way I built the wxWidgets library using VS2008.
This code is used all over the application (about 40 windows) for all text windows.
by marksatterfield
Wed Oct 17, 2018 12:52 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

What the code wants to do is have the text foreground to show but the background of the text window to be transparent so the bitmap image in the window under the text window shows through. When the brush and pen are set with a magenta color then the white text shows white with a magenta accent, not ...
by marksatterfield
Tue Oct 16, 2018 5:32 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

The isTransparent function is part of the application objects. It just checks a private transparent flag that is set via application function calls. Thanks for answering my question about magenta! I am using wxWIdgets 2.8.3 and I agree it looks like SetTransparent() is a no-op. I guess my question i...
by marksatterfield
Tue Oct 16, 2018 12:51 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

This code is working on a Box with text that is overlaying a Box with a bitmap image. It is trying to show the text but hide the the background of the text box so the image can show through and only the foreground text is displayed. The wxDC* paint is created in other code. The transparency is set i...
by marksatterfield
Fri Oct 12, 2018 6:53 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

This is running on Windows Embedded Compact 7. In a paint event where paint is a wxDC*, the code does paint->SetTextBackground((isTransparent()) ? wxColor(255, 0, 255) : mBackColor); paint->SetFont(mFont); wxBrush brush((isTransparent()) ? wxColor(255, 0, 255) : mBackColor); wxPen pen((isTransparent...
by marksatterfield
Wed Oct 10, 2018 6:01 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

Re: purple background when transparency = true

I have to use 2.8.3 because the previous version of product uses 2.8.3 and the customer did not want to update for this hardware update. I cannot show code it is company private but I can tell you that if I have text in a wxWindow and I set the fgcolor to blue, bgcolor to white and I turn on transpa...
by marksatterfield
Wed Oct 10, 2018 4:56 pm
Forum: C++ Development
Topic: purple background when transparency = true
Replies: 20
Views: 652

purple background when transparency = true

I have a Windows application running on WEC7 that uses wxWindows and when I have tranparency set to true on some text and images in the windows they should up with a purple accented output. Any reason for this and how could I remove it? Using wxWidgets 2.8.3
by marksatterfield
Thu Jul 27, 2017 5:09 pm
Forum: Platform Related Issues
Topic: Debug Help on application hang
Replies: 11
Views: 1096

Re: Debug Help on application hang

Turns out another thread's interface to the kernel was causing some bad behavior in the OS.