GTK + Canvas: How to???

BlitzMax Modules Forums/Brucey's Modules/GTK + Canvas: How to???

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.

hello!

just go and try the following code:

Framework bah.gtkmaxgui
Import brl.eventqueue
Import brl.max2d


Local window:Tgadget = CreateWindow("test", 0, 0, 300, 300)
Local canvas:tgadget = CreateCanvas(10, 10, 200, 200, window)
SetGraphics(CanvasGraphics(canvas))
Repeat
	WaitEvent()

	Select EventID()
		Case EVENT_GADGETPAINT
			Cls()

			Flip()
	End Select

Until KeyDown(key_escape)





for me it does not work at all. error message: cls() tries to access to a null object...??