Ejemplo n.º 1
0
func newArea(ab *areabase) Area {
	a := &area{
		areabase:      ab,
		textfielddone: newEvent(),
	}
	a._id = C.newArea(unsafe.Pointer(a))
	a.scroller = newScroller(a._id, false) // no border on Area
	a.SetSize(a.width, a.height)
	a.textfield = C.newTextField()
	C.areaSetTextField(a._id, a.textfield)
	return a
}
Ejemplo n.º 2
0
func newArea(ab *areabase) Area {
	a := &area{
		areabase:      ab,
		clickCounter:  new(clickCounter),
		textfielddone: newEvent(),
	}
	a._hwnd = C.newArea(unsafe.Pointer(a))
	a.SetSize(a.width, a.height)
	a.textfield = C.newAreaTextField(a._hwnd, unsafe.Pointer(a))
	C.controlSetControlFont(a.textfield)
	return a
}
Ejemplo n.º 3
0
func newArea(ab *areabase) Area {
	a := &area{
		areabase:      ab,
		clickCounter:  new(clickCounter),
		textfielddone: newEvent(),
	}
	a.controlSingleHWND = newControlSingleHWND(C.newArea(unsafe.Pointer(a)))
	a.fpreferredSize = a.xpreferredSize
	a.SetSize(a.width, a.height)
	a.textfield = C.newAreaTextField(a.hwnd, unsafe.Pointer(a))
	C.controlSetControlFont(a.textfield)
	return a
}