Search found 534 matches

by Widgets
Mon Dec 04, 2017 7:53 pm
Forum: C++ Development
Topic: Tool bar button PNG issues
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 6
Views: 1470

Re: wxBitmapButton & wxXmlResource issues

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
Replies: 6
Views: 1470

Re: wxBitmapButton & wxXmlResource issues

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
Replies: 6
Views: 1470

Re: wxBitmapButton & wxXmlResource issues

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
Replies: 6
Views: 1470

wxBitmapButton & wxXmlResource issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

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
Replies: 22
Views: 5962

Re: Tool bar button PNG issues

I'l attach one of each with the file name prefixed with the appropriate 'attribute'
by Widgets
Wed Nov 29, 2017 4:03 am
Forum: C++ Development
Topic: Tool bar button PNG issues
Replies: 22
Views: 5962

Tool bar button PNG issues

Running wxWidgets 3.1.0 on Win 10 & MSVC 20105 Some of the png files I am trying to use for tool bat button images cause an assert failure: ..\..\src\msw\toolbar.cpp(799) ... invalid tool button bit map. These png files pass pngcheck and everything else I have tried to verify they are valid PNG ...
by Widgets
Mon Nov 20, 2017 8:44 pm
Forum: C++ Development
Topic: Saving & restoring a wxAUI pane size
Replies: 2
Views: 785

Re: Saving & restoring a wxAUI pane size

After downloading & compiling the latest version from github, the same issue still exists. I have tried to trace the code to get a handle on where or why this problem arises, but have not been able to make any headway with it. I do have a a very small test project - basically the code NewPagodi ...
by Widgets
Mon Nov 20, 2017 3:22 am
Forum: C++ Development
Topic: Saving & restoring a wxAUI pane size
Replies: 2
Views: 785

Saving & restoring a wxAUI pane size

My last topic dealt with the actual hiding and showing of a wxAUI pane for a log window. That part was solved with the help of New Pagodi, but now I ran into another issue, just about as puzzling as the last one. In order to make this work, I modified the code given by New Pagodi to this: void MyFra...
by Widgets
Sun Nov 19, 2017 7:17 pm
Forum: C++ Development
Topic: Hiding/Showing a wxAUI pane
Replies: 4
Views: 2227

Re: Hiding/Showing a wxAUI pane

Edit: After a bit of googling, I found that by default my new project did not inherit all of the default libs for linking. Once I fixed that issue, your sample compiles, runs and does its thing as I would like my app to behave. So, I need to figure out just what is different, now that I have a worki...