Example #1
0
File: app.go Project: pkf/dropdot
func main() {
	gform.Init()

	mainform = NewMainform(nil)
	mainform.SetCaption("Dropdot")

	mainform.Center()
	mainform.Show()

	gform.RunMainLoop()
}
Example #2
0
func main() {
	gform.Init()

	mf := gform.NewForm(nil)
	mf.SetSize(300, 200)
	mf.Center()

	mf.OnPaint().Bind(onpaint)

	mf.Show()

	gform.RunMainLoop()
}