TaskList Manager - wxWidget GUI - WIP

BlitzMax Modules Forums/Brucey's Modules/TaskList Manager - wxWidget GUI - WIP

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How's about this small example?
SuperStrict

Framework wx.wxApp
Import wx.wxFrame
Import wx.wxListBox
Import wx.wxPanel
Import wx.wxButton

New MyApp.run()


Type MyApp Extends wxApp

	Field frame:wxFrame

	Method OnInit:Int()
	
		frame = New MyFrame.Create(,,"All Clear!")
		frame.Center()
		frame.show()

		Return True
	
	End Method


End Type

Type MyFrame Extends wxFrame

	Field lb:wxListBox
	
	Method OnInit()
	
		Local panel:wxPanel = New wxPanel.Create(Self, wxID_ANY)
		
		Local list:String[] = ["one", "two", "three", "four"]

		lb = New wxListBox.Create(panel, WXID_ANY, list, 10, 0)
		
		Local button:wxButton = New wxButton.Create(panel, 100, "clear", 10, 100)

		Connect(100, wxEVT_COMMAND_BUTTON_CLICKED, OnClear)

	End Method


	Function OnClear(event:wxEvent)
		MyFrame(event.parent).lb.Clear()
	End Function
	
End Type