Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxSmith Feature request: Option to disable calls to Fit() and SetSizeHints()
oBFusCATed:
I'm not sure the top level window has any properties anywhere.
I'm not too versed in wxSmith's internals, so I might miss something.
Preserving compatibility would be troublesome, unfortunately, you're correct.
Probably we'll have to use something like "// InitializeNoLayout(myClass)" and this would work for new code only or if the user manually changes from "//* Initialize(myClass)" to "//* IntializeNoLayout(myClass)"
This way it might not require adding "// InitializeLayout(myClass)".
Also I'm not really sure which is better to do.
Someone using wxSmith regularly should do some experimentation with both and tell us the results. :)
Other ideas are welcome of course and mostly patches, the probability for me finding time to work on this is close to 0!
But I can find time to review and apply patches.
lesnewell:
My knowledge of the internals of wxSmith is pretty much zero but I'll take a look. I downloaded the CodeBlocks source but for some reason my built executable won't run. I get 'This application was unable to start correctly (0xc000007b)'. As far as I can figure out it appears to be a 32 bit/64 bit mixup somewhere but I have yet to figure out where.
oBFusCATed:
You have to run update31.bat or update31_64.bat.
Also you have to copy the wxwidgets dll in the correct folder.
lesnewell:
Thanks. I'll give that a try tomorrow.
I think I'll look into where options like 'use parent from argument' are implemented. Adding a 'do not lay out' check box there may be a better bet.
lesnewell:
The running problem was libstdc++-6.dll. A lot of applications install this file (The CodeBlocks + minGW package installs 3 copies!) and I had a mix of 32 bit and 64 bit versions on the path. CodeBlocks was picking the wrong one. I don't normally use MinGW so I haven't come across the problem before.
As expected simply removing Fit+Layout from wxscontainer.cpp messes up windows that don't have Fit + Layout elsewhere in the code.
From a quick glance at the wxSmith code, I think adding a top level option shouldn't be too bad. What are your thoughts on panels? In my opinion panels created in wxSmith should never have Fit and Layout because they are always going to be contained by another window.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version