Search found 84 matches

by Rocketmagnet
Wed Mar 29, 2023 9:54 pm
Forum: Platform Related Issues
Topic: wxWindowsArtProvider and MSWGetBitmapForPath()
Replies: 1
Views: 1649

wxWindowsArtProvider and MSWGetBitmapForPath()

I am modifying the wxGenericDirCtrl class to add the Windows folders "Desktop", "My Documents", etc., and I would like them to have the correct icons. https://www.howtogeek.com/thumbcache/2/200/0b3d356b62ce7879d34670a33ffa68bf/wp-content/uploads/2011/10/00_explorer_window.png Pre...
by Rocketmagnet
Sun Mar 19, 2023 10:57 pm
Forum: C++ Development
Topic: Are there such things as drag-over events?
Replies: 7
Views: 583

Re: Are there such things as drag-over events?

Thanks, I'll try that and let you know.
by Rocketmagnet
Sun Mar 19, 2023 10:07 pm
Forum: C++ Development
Topic: Are there such things as drag-over events?
Replies: 7
Views: 583

Re: Are there such things as drag-over events?

Doublemax, I was thinking that the wxTreeCtrl might be doing that itself, however, mine doesn't. I'm not sure exactly how the treectrl is informed about the dragging. Doesn't it need to be connected to an event or something? Certainly the tree ctrl in my application doesn't do the highlighting. I sh...
by Rocketmagnet
Sun Mar 19, 2023 3:34 pm
Forum: C++ Development
Topic: Are there such things as drag-over events?
Replies: 7
Views: 583

Re: Are there such things as drag-over events?

Hi Oneeyeman, Thanks for the reply. I have had a good look at the treectrl sample. It does indeed do the highlighting of tree elements as they are dragged over. However, I can't for the life of me see how this is implemented in the code. The code has functions to handle the start and end of the drag...
by Rocketmagnet
Wed Mar 15, 2023 11:13 pm
Forum: C++ Development
Topic: Are there such things as drag-over events?
Replies: 7
Views: 583

Are there such things as drag-over events?

When I am dragging across a window, what events are called on that window to inform it that a drag is currently underway? When the mouse is simply moving inside a window, I seem to be able to get wxEVT_MOTION events. But when a drag is happening, those events don't seem to be generated. And I can't ...
by Rocketmagnet
Fri May 25, 2018 8:36 pm
Forum: C++ Development
Topic: Tabbing out of derived wxScrolledWindow doesn't work
Replies: 2
Views: 1285

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&q...
by Rocketmagnet
Thu Feb 15, 2018 1:35 pm
Forum: C++ Development
Topic: wxFileName AppendDir and PrependDir are the same ?
Replies: 2
Views: 946

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

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.GetFu...
by Rocketmagnet
Thu Feb 01, 2018 8:42 pm
Forum: Component Writing
Topic: Modifying wxGenericDirCtrl
Replies: 6
Views: 12320

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

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

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

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

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

Re: GIF transparent colour turning bright pink

Hi PB,

I tried using wxIMAGE_QUALITY_HIGH, but the results still show pink leakage.
Using wxIMAGE_QUALITY_HIGH still shows pink leakage.
Using wxIMAGE_QUALITY_HIGH still shows pink leakage.