示例#1
0
文件: control.go 项目: nzlov/wxgo
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)
}
示例#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
}