cool, Form builder and wxcodegen are awsome, but i'm having trouble compiling generated code from wxcodegen.
heres the code:
'
' BlitzMax code generated with wxCodeGen v1.02 : 17 Aug 2008 12:48:25
'
'
' PLEASE DO "NOT" EDIT THIS FILE!
'
SuperStrict
Import wx.wxButton
Import wx.wxFilePickerCtrl
Import wx.wxFrame
Import wx.wxPanel
Import wx.wxStaticText
Import wx.wxTreeCtrl
Import wx.wxWindow
Type myframeBase Extends wxFrame
Field m_panel1:wxPanel
Field m_button2:wxButton
Field m_staticText1:wxStaticText
Field m_filePicker1:wxFilePickerCtrl
Field m_treeCtrl1:wxTreeCtrl
Method Create:myframeBase(parent:wxWindow = Null,id:Int = wxID_ANY, title:String = "Hello world", x:Int = -1, y:Int = -1, w:Int = 800, h:Int = 600, style:Int = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL)
Return myframeBase(Super.Create(parent, id, title, x, y, w, h, style))
End Method
Method OnInit()
Local bSizer1:wxBoxSizer
bSizer1 = New wxBoxSizer.Create(wxVERTICAL)
m_panel1 = New wxPanel.Create(Self, wxID_ANY, 400,300,,, wxTAB_TRAVERSAL)
Local bSizer2:wxBoxSizer
bSizer2 = New wxBoxSizer.Create(wxVERTICAL)
m_button2 = New wxButton.Create(m_panel1, wxID_ANY, "MyButton", 400,300)
bSizer2.Add(m_button2, 0, wxALL, 5)
m_staticText1 = New wxStaticText.Create(m_panel1, wxID_ANY, "Hello world")
m_staticText1.Wrap(-1)
bSizer2.Add(m_staticText1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5)
m_filePicker1 = New wxFilePickerCtrl.Create(m_panel1, wxID_ANY, "", "Select a file", "*.*",,,,, wxFLP_DEFAULT_STYLE)
bSizer2.Add(m_filePicker1, 0, wxALL, 5)
m_treeCtrl1 = New wxTreeCtrl.Create(m_panel1, wxID_ANY,,,,, wxTR_DEFAULT_STYLE)
bSizer2.Add(m_treeCtrl1, 1, wxALL|wxEXPAND, 5)
m_panel1.SetSizer(bSizer2)
m_panel1.Layout()
bSizer1.Add(m_panel1, 1, wxEXPAND | wxALL, 5)
SetSizer(bSizer1)
Layout()
End Method
End Type
and the errors:
Building main
Compiling:main.bmx
flat assembler version 1.66
3 passes, 25356 bytes.
Linking:main.debug.exe
D:/programming/BlitzMax/mod/wx.mod/wx.mod/wx.debug.win32.x86.a(wxglue.cpp.debug.win32.x86.o):wxglue.cpp:(.text+0x2f5): undefined reference to `_wx_wxapp_wxApp__OnInit'
D:/programming/BlitzMax/mod/wx.mod/wx.mod/wx.debug.win32.x86.a(wxglue.cpp.debug.win32.x86.o):wxglue.cpp:(.text+0x309): undefined reference to `_wx_wxapp_wxApp__OnExit'
D:/programming/BlitzMax/mod/wx.mod/wx.mod/wx.debug.win32.x86.a(wxglue.cpp.debug.win32.x86.o):wxglue.cpp:(.text+0x355): undefined reference to `_wx_wxapp_wxAppMain__MainLoop'
Build Error: Failed to link D:/programming/Programs/Source/BlitzMax/test/main.debug.exe
Process complete
Thanks for all the help!