示例#1
0
文件: sizer.go 项目: nzlov/wxgo
func (s *sizer) Detach(index int) bool {
	p := s.ptr()
	if p == nil {
		return false
	}
	globalObjectTable.hold(s.Item(index))
	return goBool(C.wxSizer_Detach(p, C.int(index)))

}
示例#2
0
文件: sizer.go 项目: jimmygan/wxgo-1
func (s *sizer) Detach(index int) bool {
	p := s.wxPtr()
	if p == nil {
		return false
	}
	//BUG: get the Sizer from item and hold it.
	//item := s.Item(index)
	return goBool(C.wxSizer_Detach(p, C.int(index)))

}