Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith Plugin: can't delete from form
olivetti:
hmmm it's just when I press the delete button, but I guess I know what's going on.
The wxFlatNotebook doesn't have a HitTest(), so the OnMouseClick event does not work and so the container isn't selected!
I'll try to fix tomorrow (going to be also :D) and I'll post the whole code!
olivetti:
well, the plugin is more mature now, but the delete button still does not work! (though using the X or ctrl-x works)
here's a link to the source code (including project and the wxFlatNotebook plugin):
http://rapidshare.com/files/64849043/wxFlatNotebookPlugin.zip.html
byo:
Hi
I've tested this component on Linux and current I don't see any issues with deleting. Maybe this bug is windows-specific. I also notied that you include your own copy of wxFlatNotebook with the sources. That's not necessary since C::B already has this library linked in main dll-s so we can use that version. I also managed to successfully add your component into wxSmithContribItems plugin (currently on linux only) and it works nice so if you want I can add it into main source repository. Only one .cpp, one .h and bitmaps are needed since separate plugin sources and extra wxFlatNotebook sources are not required. It should also be easy to add it into windows project, but since I'll have to compile C::B from scratch on my windows box it will take some time.
So waiting for your answer, see you tomorrow :)
BYO
olivetti:
oh it would be nice if you could add it there!
Maybe adding to wxSmithContribItems and compiling with the FlatNotebook included on C::B it solves the problem on windows as well!
I'm looking forward to that!
regards
byo:
Ok, it's now in official sources :) It should be inside next nightly.
Unfortunately the delete bug still occur on windows. And probably it's caused by wxFlatNotebook which blocks some keyboard events. I don't have enough time now to investigate it better so maybe you will find something. Currently Ctrl+X and X button must be sufficient :)
Regards
BYO
BTW. There was no copyright header in your code, I asume that you want to publish this as GPL software. I can add those headers but since it's your code, it's also your decision :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version