Search found 79 matches

by Rocketmagnet
Fri May 25, 2018 8:36 pm
Forum: C++ Development
Topic: Tabbing out of derived wxScrolledWindow doesn't work
Replies: 2
Views: 599

Tabbing out of derived wxScrolledWindow doesn't work

Hi, I added the following code to the minimal sample: wxSplitterWindow *splitter = new wxSplitterWindow(this, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); splitter->SetSize(GetClientSize()); splitter->SetSashGravity(1.0); wxButton* aboutBtn = new wxButton(splitter, wxID_ANY, "About"); wxS...
by Rocketmagnet
Thu Feb 15, 2018 1:35 pm
Forum: C++ Development
Topic: wxFileName AppendDir and PrependDir are the same ?
Replies: 2
Views: 439

Re: wxFileName AppendDir and PrependDir are the same ?

Aah! Thanks.

Just digging into the code for wxGenericDirCtrl, and it doesn't seem to be consistent with adding its \ to the end of the paths. Sorted now.

Hugo
by Rocketmagnet
Thu Feb 15, 2018 10:26 am
Forum: C++ Development
Topic: wxFileName AppendDir and PrependDir are the same ?
Replies: 2
Views: 439

wxFileName AppendDir and PrependDir are the same ?

Hi, I am surprised to find that wxFileName::AppendDir() and wxFileName::PrependDir() seem to do the same thing. The following code: wxFileName pathApp("C:\Code"); wxFileName pathPre("C:\Code"); pathApp.AppendDir("Project"); cout << "Append = " << pathApp.GetFullPath() << endl; pathPre.PrependDir("Pr...
by Rocketmagnet
Thu Feb 01, 2018 8:42 pm
Forum: Component Writing
Topic: Modifying wxGenericDirCtrl
Replies: 6
Views: 1975

Re: Modifying wxGenericDirCtrl

eranon,

Sure, I can write my own function with the same name etc., but I cannot override it, in the sense that other functions of the base class will still call the original function, and will not call my new one. For those functions to call my new code will require a virtual function.
by Rocketmagnet
Thu Feb 01, 2018 7:59 pm
Forum: Component Writing
Topic: Modifying wxGenericDirCtrl
Replies: 6
Views: 1975

Re: Modifying wxGenericDirCtrl

Hi ONEEYEMAN, I'm surprised, since many of the questions I see in this forum seem to be along similar lines, about modifying the behaviour of wx classes. Indeed, the description of this forum: Are you writing your own components and need help with how to set them up or have questions about the compo...
by Rocketmagnet
Thu Feb 01, 2018 5:34 pm
Forum: Component Writing
Topic: Modifying wxGenericDirCtrl
Replies: 6
Views: 1975

Modifying wxGenericDirCtrl

Hi, I'd like to modify the way wxGenericDirCtrl behaves. Specifically, I'd like the option to sort directories by date, rather than alphabetically. I have tried to inherit from it, so that I can overload ExpandDir() (which is virtual, so I guess it's designed to be overloaded), and have it call a di...
by Rocketmagnet
Fri Dec 01, 2017 4:37 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi ONEEYEMAN,

I have cloned the git repository, modified the code and created a patch. I will now submit this patch using trac.

Thanks
by Rocketmagnet
Fri Dec 01, 2017 3:35 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi PB,

Can we at least agree on one thing, that the code in gifdecode.cpp is actively changing one of the colors in the image, and that it is this code that is responsible for the pink colour I am seeing?
by Rocketmagnet
Fri Dec 01, 2017 3:28 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi PB,

I tried using wxIMAGE_QUALITY_HIGH, but the results still show pink leakage.
High_quality_rescale.png
Using wxIMAGE_QUALITY_HIGH still shows pink leakage.
by Rocketmagnet
Fri Dec 01, 2017 2:12 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi PB

> I have no idea why this happens and cannot allocate more time to investigate.

Well, my modifications to gifdecod.cpp seem to fix this problem. Do you think I should suggest this as a modification?

Hugo
by Rocketmagnet
Fri Dec 01, 2017 2:10 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Furthermore, two other applications agree with me. This is another image browser, ACDSee. It draws the GIFs correctly, without any pink: ACDSee.png And this is Paint Shop Pro: PSP.png Would you at least agree with me that adding the pink colour is not standard, and that there are applications which ...
by Rocketmagnet
Fri Dec 01, 2017 2:06 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi PB, Thanks for being patient with me. :) The application I'm making is an image browser. It shows thumbnails of the images in a directory. Here are some screenshots of my application so far: This is what I started with: Pink_Unmasked.png So I tried setting useMask=true, but that still shows lots ...
by Rocketmagnet
Fri Dec 01, 2017 12:39 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

There's another reason why the code shouldn't really be changing the colours. Look what happens when my application creates a thumbnail of a GIF that contains transparency information. cats_rescaled.png if (image.LoadFile(fullPath.GetFullPath())) { wxSize newSize = GetTnImageSize(image.GetSize(), si...
by Rocketmagnet
Fri Dec 01, 2017 12:25 pm
Forum: C++ Development
Topic: GIF transparent colour turning bright pink
Replies: 21
Views: 2119

Re: GIF transparent colour turning bright pink

Hi PB, Perhaps I'm failing to communicate my needs, or perhaps I'm being very thick. What I want to do is draw this GIF, so that it looks exactly like this: cat_no_transparency_info.gif Shouldn't the code be more like this: transparent = GetTransparentColourIndex(frame); // set transparent colour ma...