Adding widgets to wxsmith shouldn't be too hard.OK, first I am starting a new wxSmith framebased project which looks like this:
For the others you need to post simple examples with steps to reproduce the problems.
Saying "wrong sizing of windows with only 1 child" is not a good way to report a problem...
can't see anything on this small images...Have fixed the sizes of images.
but this is probably something wxWidgets related, not wxSmith. Wrong styles or flags...
are you using sizers?
there is something wrong...
Thank you.My fault, never noticed this problem with wxDev, so thought it's wxSmith problem.
This is for sure a wxWidgets issue. The code generated works fine, but is not the right code you want to... I am no wxWidgets expert, i tried a bit to look at the examples but did not find any obvious... What version of wxWidgets do you use?
I don't think you would have great success using wxWidgets without sizers.I am familiar with sizer idea, since Java is my prefered programing language. Unfortunately the sizers are not as powerfull as their conterparts in Java, for example FlowSizer and CardSizer are completly mising. Also it's not always posible to place widbets exactly where you want with sizers.
wxSmith is made around the idea of sizers, so even if there is support for the sizerless ui it is rarely tested or fixed/improved.
To find what is going on you need to manually make a sample code that works and then compare it with the auto generated from wxSmith to see where the difference is.
Then we could probably see if wxSmith could be made to generate such code.
But please consider the sizer idea - users of your application will be thanking you for this also.
An other thing is that GridBagSizer is not working, which seems to be wxWidget bugi doubt that... Can you describe more? I still don't know what wxWidgets version you are using
Sorry, my wxWidget version is 3.0.2, which was the latest stable version at least about a month ago.QuoteAn other thing is that GridBagSizer is not working, which seems to be wxWidget bugi doubt that... Can you describe more? I still don't know what wxWidgets version you are using
||=== Build: Release in test (compiler: GNU GCC Compiler) ===|
NewPanel.h|24|error: 'wxGridBagSizer' does not name a type|
NewPanel.cpp||In constructor 'NewPanel::NewPanel(wxWindow*, wxWindowID, const wxPoint&, const wxSize&)':|
NewPanel.cpp|29|error: 'GridBagSizer1' was not declared in this scope|
NewPanel.cpp|29|error: expected type-specifier before 'wxGridBagSizer'|
NewPanel.cpp|31|error: 'wxGBPosition' was not declared in this scope|
NewPanel.cpp|31|error: 'wxDefaultSpan' was not declared in this scope|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Adding widgets to wxsmith shouldn't be too hard.Would be cool to have the mising widgets in wxSmith. Also wxStyledTextCtrl is mising in wxSmith.
Patches welcome...Unfortunatelly have not found patches, that solve the problem with at least 1 of the missing widgets.
About the mis-compilation - is the gbsize.h part of the wx's precompiled header or not?Sorry, but having no idea what you are meaning with that wx's precompiled header.
What happens if you extract it from the ifdef section.
Patches welcome...Unfortunatelly have not found patches, that solve the problem with at least 1 of the missing widgets.
Do I look like somebody creating and submitting patches?Patches welcome...Unfortunatelly have not found patches, that solve the problem with at least 1 of the missing widgets.
"Patches welcome..." Implies you creating and submitting patches.
Tim S.
commit b657ec13bec8e967e6fec997b52b4d56d9b4cf7b
Author: T Petrov <tpetrov@codeblocks.org>
Date: Tue Aug 15 21:52:38 2017 +0000
* wxSmith: Add wxSpinCtrl alignment styles
> http://forums.codeblocks.org/index.php/topic,22082.msg150338.html#msg150338
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@11154 2a5c6006-c6dd-42ca-98ab-0921f2732cef
Dead is a bit strong word.I was looking here: https://sourceforge.net/projects/wxsmithaddons/
I'm not sure what you've looked at, but this is the latest commit for wxSmith:Codecommit b657ec13bec8e967e6fec997b52b4d56d9b4cf7b
Author: T Petrov <tpetrov@codeblocks.org>
Date: Tue Aug 15 21:52:38 2017 +0000
* wxSmith: Add wxSpinCtrl alignment styles
> http://forums.codeblocks.org/index.php/topic,22082.msg150338.html#msg150338
git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@11154 2a5c6006-c6dd-42ca-98ab-0921f2732cef
I wanted to try to implement your controls, and i found out, that there is a implementation for this controls in wxSmith. They are simply not compiled and up to date ( the source is from 2000~2003?)But what about wxSpinCtrlDouble? This component would be very usefull for me since I want to manipulate float values.
https://sourceforge.net/p/codeblocks/code/HEAD/tree/trunk/src/plugins/contrib/wxSmithSTC/
They are not in the default codeblocks.workspace
Anyway, the rich text component compiles fine with wx2.8 and wx3.0
The wxStyledTextCtrl does not work, because it is made for <wx2.8
I think it would not be difficult to port it to wx3.0 but i would not port it to wx2.8. I think we should begin to abandon wx2.8.
Any thoughts on this? Why is this component not shipped by default?
Here we are:Cool thanks. But how to instal such patch? And does the patch worck only with the latest CodeBlocks version?
https://sourceforge.net/p/codeblocks/tickets/616/
https://sourceforge.net/p/codeblocks/tickets/617/
You have to compile codeblocks by yourself to get the latest features, or wait for a nightly build. At the moment only wxSpinCtrlDouble is in trunk (https://sourceforge.net/p/codeblocks/code/HEAD/tree/ ), for the StyledTextCtrl you have to wait until a developer has reviewed the code and pushed to trunk.So it´s much complicated, that I thought. I thought, that I have just to replace wxSmith stuff.
How to compile codeblocks from source: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows
But be aware, this is a old guide and you have to use the wx30 workspace and fix al paths and settings accordingly. I have lost my wiki password, and i don't get any answer from the admin so i can not fix the wiki entries...
There is no posibility to set ScrollRate values for wxScrolledWindow in wxSmith. Fixing that would be really helpfull.
I know that seting ScrollRate manually takes just 1 line, but the scroling still not worcking properlly after that, so I tought if ScrollRate is set properlly it could fix the problem, but am not really shure about that animore.QuoteThere is no posibility to set ScrollRate values for wxScrolledWindow in wxSmith. Fixing that would be really helpfull.
this is probably one line in your own code ;)
All requests here will get lost, there is no nice possibility to track a forum entry so it will get lost ( i look only for forum posts maybe 2 months olt at max, in the SF bug tracker i look quite ferquently for old bugs and try to post patches). Make a ticket on SF and probably post the forum link there, so it is fixed somewhere.
Different ArtProvider, looks like your application uses another one by default than CodeBlocks, try to set one explicit before loading any ressources.And how should I set it?
Well, technically http://docs.wxwidgets.org/trunk/classwx_art_provider.html (http://docs.wxwidgets.org/trunk/classwx_art_provider.html), but apparently, in contrast to the Art-Providers for the various AUI-Elements, there is only one implementation available.Have no idea which wxWidget version was used to compile my CodeBlocks version agains, as I have instaled a compiled version. Looks like the best solution would be to have that icons included hardcoded in the rc file.
Your screenshots are from windows so themes are also not a problem. But your previous screenshots show that your CodeBlocks is compiled against wxWidgets 2.8, is your application by chance compiled against wxWidgets 3.x? Because i just did a test with my wxWidgets 3.x trunk version and my icons look like your "wrong" ones. While there are still xpm's with the "correct" look available, there seem to be also tango-style versions present, sadly only as char-arrays with png raw-pixeldata and i didnt convert them into pictures to see how they look. So probably the Art-Provider picks these up instead, no idea how this can be changed.
As always, tickets would be a better place to collect feature requests....I know, you have tolld it already, but tickets are a problem for me.
At the moment wxSmith suports only cresting native version of dialogs, but an option where you can select generic version instead would be very helpfull.Can you give some link where the difference of "native" and "generic" is described? I don't know what you mean by this...
ad a custom dialog with an option to select from dialogs avaible in the project would be really usefull and save a lot of time.You mean copy a dialog, or some kind of template? The first would be easy, the second a lot work...
You mean copy a dialog, or some kind of template? The first would be easy, the second a lot work...So here some example of what I mean, you can create custom dialogs like this:
I am still not quite sure what you want? A dialog to open the windows, or a dialog to create a copy of a window? Something like the key combination "Alt+G" for source files?OK, I try to explain again: with wxSmith you can add dialogs like wxFileDialog, wxDirDialog, etc..., would be nice to be able to add custom dialogs, which you have created for the project. The same thing with custom Panels.
A list of improvements for the wxSmith plugin created in this forum so far:wxSimplebook is mising in that list.
wxStyledTextCtrl missingfixed in https://sourceforge.net/p/codeblocks/tickets/617/- wxGridBagSizer include is not correct
- start a clean framebased wxSmith project, without menu and status bars
- set ScrollRate values for wxScrolledWindow in wxSmith
- wizard helping including xpms in Image editor
- generic version of common dialogs: http://docs.wxwidgets.org/trunk/overview_cmndlg.html for example wxGenericColourDialog
- Editor dialog for editing columns in list control
- Clone dialogs and panels
[edit1:] Add point 8
So can at least some of that features be added?
Like, already mentioned, I am not the person to write such patches, as it goes more than over my skills.So can at least some of that features be added?
There is likely no core CB Dev person who is supporting wxSmith.
If you submit good patches, there is a good chance they will be applied.
Remember the patch should fix/add a single feature at a time.
Tim S.
But wxSpinCtrlDouble will be avaible in the coming release version of Code::Blocks ?You have to compile codeblocks by yourself to get the latest features, or wait for a nightly build. At the moment only wxSpinCtrlDouble is in trunk (https://sourceforge.net/p/codeblocks/code/HEAD/tree/ ), for the StyledTextCtrl you have to wait until a developer has reviewed the code and pushed to trunk.So it´s much complicated, that I thought. I thought, that I have just to replace wxSmith stuff.
How to compile codeblocks from source: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows
But be aware, this is a old guide and you have to use the wx30 workspace and fix al paths and settings accordingly. I have lost my wiki password, and i don't get any answer from the admin so i can not fix the wiki entries...
I personally not really interested in StyledTextCtrl, but since it was avaible in wxDev see no reason why it shouldn´t be suported in wxSmith. Also could you post the request for wxSimplebook there? The widget is also not a priority for me personally, but it´s the only mising book widget.
Yes, it is in the latest nightlyGlad to hear that. Any chace to see at least 1 of the other things from that list?
Thanks for the answer. Like already mentioned I have no idea about wxSmith code, but for wxSimplebook, as its name saies, was thinking it shouldnt be so hard as wxNotebook code with some changes could be used.Was thinking the same, but there are no tabs for this control, so how the wxSmith user selects the different tabs to view? --> New dialog.
The user can select the tab in the resource view. In the resorce tree it´s looking like this:QuoteThanks for the answer. Like already mentioned I have no idea about wxSmith code, but for wxSimplebook, as its name saies, was thinking it shouldnt be so hard as wxNotebook code with some changes could be used.Was thinking the same, but there are no tabs for this control, so how the wxSmith user selects the different tabs to view? --> New dialog.
How to trigger this dialog? There is no area in the SimpleNotebook that is not specifically for only this control. The client area fills the whole control so you have to detect from the client area if the parent is a SimpleNotebook and show the appropriate window. In the normal notebook there is the tab list at the top, where you can add all needed menus for notebook control (Add page, delete Page ecc)... As far as i can tell wxSmith does not support detection of the parent (or at least i need a lot more time to investigate, that i do not have)
wxSmith does not support right click in the tree control at the moment, but it would be possible to add custom controls to the quick edit panel... This would be a possibility...My post was more related to simplebook stuff.
My post was more related to simplebook stuff.mine also. The Plugin does not support the modification of the right click in the resource tree control. You can try it out: Right click in the resource tree does not open a context menu... So you can not add a "add page" submenu entry, because there is no menu present... The solution would be the qick edit panel, but this is not intuitive... Nerveless i will try to implement it, but i give no guarantee...