Search found 273 matches

by Widgets
Thu Jan 18, 2018 6:01 pm
Forum: C++ Development
Topic: wxDataviewListCtrl - change choice box contents [SOLVED]
Replies: 3
Views: 50

Re: wxDataviewListCtrl - change choice box contents [SOLVED]

wxDataViewCtrl is designed so a type of value (text, bitmap, etc) is associated with a column for all rows. To have different behaviour for each row is hard. First you need your own wxDataViewModel and your own wxDataViewCustomRenderer . Thank you. Manolo. For this time and this project, adapting t...
by Widgets
Wed Jan 17, 2018 6:12 pm
Forum: C++ Development
Topic: wxDataviewListCtrl - change choice box contents [SOLVED]
Replies: 3
Views: 50

wxDataviewListCtrl - change choice box contents [SOLVED]

I'm trying to use a data view list control with some rows of a column having a choice box. During the initial setup, when I set the column headings I add a choice box column without data. For most rows, this is just fine, but for some rows I would like to add a number of different choices - possibly...
by Widgets
Mon Jan 08, 2018 5:55 am
Forum: C++ Development
Topic: wxFileDialog & default directory
Replies: 9
Views: 528

Re: wxFileDialog & default directory

IIRC, it is important to make sure the path is terminated with either a forward or backward slash, otherwise the last component seems to be interpreted as a file name, rather than part of the path.
by Widgets
Mon Jan 08, 2018 4:22 am
Forum: C++ Development
Topic: wxFileDialog & default directory
Replies: 9
Views: 528

Re: wxFileDialog & default directory

All I have verified recently, is that it starts out in the expected directory. I would (almost) expect - though I have not verified - that if you then change directories once in the dialog, that the behavior might/would change, although I cannot quite imagine the scenario you describe. I would certa...
by Widgets
Mon Jan 08, 2018 3:02 am
Forum: C++ Development
Topic: wxFileDialog & default directory
Replies: 9
Views: 528

Re: wxFileDialog & default directory

It is a long time ago and I am hard pressed to recall just what I did to fix it, but .... My current code looks like this - and it seems to do the expected thing - ie start in the expected directory. bool MyFrame::GetFileFromUser( wxString &wsJobFile ) { wxString wsSourceDrive; wxString wsSource...
by Widgets
Tue Dec 05, 2017 10:25 pm
Forum: C++ Development
Topic: Tool bar button PNG issues [SOLVED]
Replies: 22
Views: 440

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: 440

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: 440

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: 149

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: 440

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: 149

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: 149

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: 149

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: 149

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: 440

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...

Go to advanced search