wxCodeGen

BlitzMax Forums/Brucey's Modules/wxCodeGen

Kurator(Posted 2008) [#1]
What do I wrong when this happens:

wxFormBuilder:


wxCodeGen Output:


Is there something wrong in my layout - or are there any limitations in exporting to bmax?




Brucey(Posted 2008) [#2]
Something isn't quite right there, is it?


Kurator(Posted 2008) [#3]
sorry, was a wrong basedir on my webspace ;)


Brucey(Posted 2008) [#4]
Okay.. the toolbar generator isn't working properly.

It is adding controls to the wrong parent, and missing out another method call.

I'll have a look at it now.


Kurator(Posted 2008) [#5]
thanks a lot :)


Brucey(Posted 2008) [#6]
I've updated SVN with the latest wxCodeGen.


Kurator(Posted 2008) [#7]
Hi,

thank you for the adaption - I think there happened something to the Separator-Control:



I have to comment out the .AddControl() Methodcall after the .AddSeparator() to get it working.

But another question:
How to I get rid off the space between the MenuBar and the ToolBar? Is there something wrong how I used the Sizer?


Brucey(Posted 2008) [#8]

m_toolBar1.AddSeparator()
'm_toolBar1.AddControl()


Oh.. I didn't notice that in my test.. silly.

How to I get rid off the space between the MenuBar and the ToolBar?

I'm not sure. I'll need to compare the output of wxCodeGen and the C++... I'll get back to you.


Kurator(Posted 2008) [#9]
I think I found my mistake - I may not drag the toolbar as a child to the Sizer. It has to be directly at the main window.


Brucey(Posted 2008) [#10]
I may not drag the toolbar as a child to the Sizer. It has to be directly at the main window.

Actually, you can do either. There was a bug in the generator which incorrectly attached the toolbar to the frame, instead of the sizer. Which I've fixed now. (hopefully)


Kurator(Posted 2008) [#11]
thank you, everything works now fine - even the toolbar inside the sizer :)