wxCodegen does not add a setsashgravity
That's a bug then!
I now realise I have to be more cautious towards wxCodeGen.
Yes. It isn't perfect - there's a lot of widgets/variations that can be generated and it seems I might have missed some bits ;-)