Search found 268 matches

by Widgets
Tue Dec 05, 2017 10:25 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

A bit more on removing the error messages: Finally found a GUI - PngGauntlet (PG) https://pnggauntlet.com / - which does seem to not only shrink the PNG files, but also removes the offending bits in the files. My current work flow is to make a copy - just-in-case - of each PNG, then drop them onto t...
by Widgets
Tue Dec 05, 2017 6:03 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Found this thread: https://openclassrooms.com/forum/sujet/libpng-warning-iccp-known-incorrect-srgb-profile. So, maybe you could succeed with imagemagick. Thank you, After a bit of experimenting, I found that Imagemagick mogrify does the job, though it also seems to make the edges of the image consi...
by Widgets
Mon Dec 04, 2017 10:14 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

So, cool if you located the culprits (two functions with the same name and signature is a lack of luck;) :evil: :shock: About your sRGB profile error, I don't know, I didn't encounter it. I'm producing my images from Photoshop and sometime optimized afterward through Light Image Resizer which at it...
by Widgets
Mon Dec 04, 2017 7:59 pm
Forum: C++ Development
Topic: wxBitmapButton & wxXmlResource issues [SOLVED]
Replies: 6
Views: 107

Re: wxBitmapButton & wxXmlResource issues [SOLVED]

I have now identified the issue and described the real issue as far as I am concerned in a reply to a related posted issue. https://forums.wxwidgets.org/viewtopic.php?f=1&t=44070&p=180850#p180850 Basically, my GUI builder created two identically named C-style functions to initialize the bitm...
by Widgets
Mon Dec 04, 2017 7:53 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Hello, And what if you would get rid of wxXmlResource going through a tool like wxInclude, bin2c or png2wx to convert your image file in a C array (stored in a .h header file)? I very much appreciate your help. By now, I have convinced myself, that I can bypass the problem by loading the files dire...
by Widgets
Sun Dec 03, 2017 3:49 am
Forum: C++ Development
Topic: wxBitmapButton & wxXmlResource issues [SOLVED]
Replies: 6
Views: 107

Re: wxBitmapButton & wxXmlResource issues [SOLVED]

Is this all still related to wxXmlResource? IMO, yes; wxCrafter loads all of its image resources via wxXmlResource, though the fact that some code which is not even executed in the sequence of events seems to indicate that is more than a simple code issue ..... From a wxWidgets point of view using ...
by Widgets
Sat Dec 02, 2017 8:56 pm
Forum: C++ Development
Topic: wxBitmapButton & wxXmlResource issues [SOLVED]
Replies: 6
Views: 107

Re: wxBitmapButton & wxXmlResource issues [SOLVED]

After spending the better part of a day in trying to track down this problems I am more puzzled than ever. First I tried a minimal example with a minimal dialog with tool bar buttons, using the same PNG files as in my project. No luck reproducing the issue with either plain or wxAui tool bar buttons...
by Widgets
Sat Dec 02, 2017 12:15 am
Forum: C++ Development
Topic: wxBitmapButton & wxXmlResource issues [SOLVED]
Replies: 6
Views: 107

Re: wxBitmapButton & wxXmlResource issues [SOLVED]

I'll give it a shot, though it may be a day or so.
by Widgets
Fri Dec 01, 2017 8:47 pm
Forum: C++ Development
Topic: wxBitmapButton & wxXmlResource issues [SOLVED]
Replies: 6
Views: 107

wxBitmapButton & wxXmlResource issues [SOLVED]

Just like my recent post regarding dialog frame tool bar issues with PNG and wxXmlResource, I have now converted the tool bar to a plain sizer filled with wxBitmapButtons. Using the same icons as with the tool bar gives me identical issues. Some of the bit map buttons simply don't show. The common u...
by Widgets
Fri Dec 01, 2017 3:32 am
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Just a bit more news and more of a puzzle. After trying to track down just where the problem started, I used the original 'bad' PNG image again and tried to trace through the code. wxBitmap wxXmlResource::LoadBitmap(const wxString& name) { wxBitmap *bmp = (wxBitmap*)CreateResFromNode( FindResour...
by Widgets
Wed Nov 29, 2017 9:59 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Running the 'bad' image through Irfanview-64 does shrink it (it drops a number of sections) and pngcheck reports it as OK, 39.2 % compression ratio, but it still fails to load from wxXmlResource. I have posted a question on the wxCrafter forum - but nothing to report as yet. Edit:The question there ...
by Widgets
Wed Nov 29, 2017 8:09 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Thank you, PB I also receive that specific error message for all PNG file I use, but I have installed a filer - suggested by Julian Smart - to avoid this nuisance: bool MyApp::OnInit() { ............. #if defined (WANT_LOG_FIX) // MUST stay ahead of showing the main frame wxArrayString unwantedMessa...
by Widgets
Wed Nov 29, 2017 7:25 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

Thank you both. As for the PNG fix, I was expressing my hope - not any insider information ;-) I have replaced the original code with: #if 1 wxBitmap wbmTest; wbmTest.LoadFile( _("D:/pkg/wx/MSVC2015/_3.1-2015/wxGTM/rc/edit_add.png"),wxBITMAP_TYPE_PNG ); bool bIsOK = wbmTest.IsOk(); m_toolb...
by Widgets
Wed Nov 29, 2017 6:05 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

I have code in place to ignore the sRGB profile issue, because I had run into it quite some time ago. The images are loaded by code produced by wxCrafter as part of a tool bar in a dialog m_toolbarTemplate = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxTB_FLAT)...
by Widgets
Wed Nov 29, 2017 5:15 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 336

Re: Tool bar button PNG issues [SOLVED]

I'l attach one of each with the file name prefixed with the appropriate 'attribute'

Go to advanced search