brucey? wxsplitterwindow : sash gravity

BlitzMax Forums/Brucey's Modules/brucey? wxsplitterwindow : sash gravity

Wiebo(Posted 2009) [#1]
Hi,

Is sash gravity implemented in the wxsplitterwindow widget? I've been trying to get this to work for an hour now, but I got nowhere.


Brucey(Posted 2009) [#2]
Yes it is.

Try the splitter2 sample :-)
(see menu option to set gravity - try 1, 0.5 and 0 - resize each time to see effect.


Wiebo(Posted 2009) [#3]
Yes that works. I'm using a splitter on a splitter though. Might that be a problem?


Brucey(Posted 2009) [#4]
Might that be a problem?

It shouldn't be :-)


Wiebo(Posted 2009) [#5]
I found out that wxCodegen does not add a setsashgravity command in the exported code. All is well now! I now realise I have to be more cautious towards wxCodeGen. So far it has worked flawlessly. :)


Brucey(Posted 2009) [#6]
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 ;-)


Wiebo(Posted 2009) [#7]
It's pretty good though :)


Brucey(Posted 2009) [#8]
Fixed.

It's pretty good though

Thanks. I've always like building code generators. (how nerdy does that sound?!)


Wiebo(Posted 2009) [#9]
ha!, don't worry, you're among nerds here. I crated a code generator for my form editor GUIde some years back. It's fun to do. Code for code's sake.