Search found 60 matches

by Jive Dadson
Sat Mar 03, 2018 9:30 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors [SOLVED]

I lightened the background to Munsell value N7. Marked the issue as [SOLVED]. Don't know how to do it in green. Later...

Image
by Jive Dadson
Sat Mar 03, 2018 7:13 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

Thanks for sticking with me. I suspect the app will now look better on various themes that I cannot anticipate. I wonder if I lost a contract because the thing looked bad on the customer's computer. I will give some thought to changing the background value depending on context. The way I have been u...
by Jive Dadson
Sat Mar 03, 2018 6:55 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

For example, while painting, the artist can take a snap of the work in progress, and sample an area to see what "real" color of paint to mix. It can also be used to copy photos in oil paint.
by Jive Dadson
Sat Mar 03, 2018 6:46 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

I'm not sure what you mean by the big ugly. The background is that color of gray because I chose it. It's a mid-value neutral, that I chose to help reduce a kind of compensation that the eye/brain makes, called "simultaneous color contrast". It's the basis for a lot of optical illusions. T...
by Jive Dadson
Sat Mar 03, 2018 6:27 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

The dark gray around is because it's rendered in Windows Aero theme. Stuff underneath the frame is showing through, by (Microsoft's) design. To make it marginally worse (so to speak) the snipper tool only does rectangles, not frames with rounded corners. It looks fine. Probably it would not look so ...
by Jive Dadson
Sat Mar 03, 2018 6:22 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

I've been saying that for decades, possibly pre-Al.

Thanks for the help. Much ado about not much on my part. I think Shakespeare said that.
by Jive Dadson
Sat Mar 03, 2018 6:12 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

Viola! as they say in France.


What I was missing a minute ago was that I had to set properties in two places to get an embedded manifest, to wit, in the Linker properties and the Manifest properties. The error message is no more.
by Jive Dadson
Sat Mar 03, 2018 5:46 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

It looks fine to me. https://s10.postimg.org/s0fvc8ci1/fruits.png But then, I don't do a lot with it: Load images, resize them up and down, shrink wrap the frame around them. The purpose of the program is to sample pixels and show the colors in Munsell notation. In the image above, a place in the or...
by Jive Dadson
Sat Mar 03, 2018 2:44 am
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

You single-stepped through the code and are 100% sure that CreateToolBar() causes the messages? Yep. Single-stepped all the way into it. I am completely sure that the messages come from CreateToolBar. I would try to create the toolbar before creating any child windows and applying any sizer. I can ...
by Jive Dadson
Fri Mar 02, 2018 7:31 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

OK. You asked for it. :-) Sorry it's so hard to read. I haven't figured out how to change the font color in the code box. // (c) Copyright 2009, 2018 David B.Jones // All rights reserved. #include "stdafx.h" #include "MyFrame.h" #include "munsell.h" #include "text_...
by Jive Dadson
Fri Mar 02, 2018 7:21 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

I tried the toolbar sample. It does not show the error messages. However, it is quite the bowl of spaghetti. I have given up on finding "the difference". All I can say is that I am not doing anything that (to me) looks the tiniest bit fishy. And if it is a sin of omission, I haven't a clue...
by Jive Dadson
Fri Mar 02, 2018 6:12 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

Re: msw - CreateToolBar always logs errors

What type of images do you use for the toolbar? It reports the errors before I add any images. What version of wx do you use? wx 3.1.1, but it has done this for years; What compiler/SDK? VS-2017, C++17, 10.0.16299.0 , but it has done this for years. What's your version of Windows you are trying it ...
by Jive Dadson
Fri Mar 02, 2018 2:45 pm
Forum: Platform Related Issues
Topic: msw - CreateToolBar always logs errors [SOLVED]
Replies: 20
Views: 4752

msw - CreateToolBar always logs errors [SOLVED]

This behavior has been around for a long, long time. It applies to the MS WIndows port, a.k.a. `msw`. Am I doing something wrong, or is there a bug in wxWidgets? I create a toolbar in the MyFrame::MyFrame constructor, when all else is done. tb = CreateToolBar(wxTB_HORIZONTAL | wxTB_FLAT, ToolBar); I...
by Jive Dadson
Fri Mar 02, 2018 12:35 pm
Forum: C++ Development
Topic: Transparent -> black after upgrade
Replies: 2
Views: 1073

Re: Transparent -> black after upgrade

image.ConvertAlphaToMask(gray, gray, gray);

Yessiree. That does the trick. Thanks much!
by Jive Dadson
Fri Mar 02, 2018 7:17 am
Forum: C++ Development
Topic: Transparent -> black after upgrade
Replies: 2
Views: 1073

Transparent -> black after upgrade

I hope this problem rings a bell with someone I updated a project from wxWidgets 2.8 x86 to wxWidgets 3.1 64bit. Using Visual Studio 2017, VC++17. The project worked well before. Now in some circumstances .ico files with transparent backgrounds are displaying the backgrounds as black. The main windo...