Exemplo n.º 1
0
func (b *button) Text() string {
	return C.GoString(C.buttonText(b.id))
}
Exemplo n.º 2
0
func (c *checkbox) Text() string {
	return C.GoString(C.buttonText(c.id))
}
Exemplo n.º 3
0
	},
	c_button: &classData{
		make: func(parentWindow C.id, alternate bool, s *sysData) C.id {
			button := C.makeButton()
			C.buttonSetTargetAction(button, appDelegate)
			applyStandardControlFont(button)
			addControl(parentWindow, button)
			return button
		},
		show: controlShow,
		hide: controlHide,
		settext: func(what C.id, text C.id) {
			C.buttonSetText(what, text)
		},
		text: func(what C.id, alternate bool) C.id {
			return C.buttonText(what)
		},
	},
	c_checkbox: &classData{
		make: func(parentWindow C.id, alternate bool, s *sysData) C.id {
			checkbox := C.makeCheckbox()
			applyStandardControlFont(checkbox)
			addControl(parentWindow, checkbox)
			return checkbox
		},
		show: controlShow,
		hide: controlHide,
		settext: func(what C.id, text C.id) {
			C.buttonSetText(what, text)
		},
		text: func(what C.id, alternate bool) C.id {