Esempio n. 1
0
func NewControl(parent Window, id int, pos *Point, size *Size, style int, validator Validator, name string) Control {
	return globalObjectTable.bindObject(C.wxControl_New(parent.ptr(), C.int(id), (*C.Point)(pos), (*C.Size)(size), C.long(style), validator.ptr(), cString(&name)), true).(Control)
}
Esempio n. 2
0
func New_Control(parent Window, id int, pos *Point, size *Size, style int, validator Validator, name string) Control {
	c := &control{}
	c.bindWxPtr(C.wxControl_New(parent.wxPtr(), C.int(id), (*C.Point)(pos), (*C.Size)(size), C.long(style), validator.wxPtr(), cString(&name)), true)
	return c
}