예제 #1
0
파일: menubar.go 프로젝트: nzlov/wxgo
func (b *menuBar) Append(menu Menu, title string) {
	p := ptr(b)
	if p == nil {
		return
	}
	globalObjectTable.unhold(menu)
	C.wxMenuBar_Append(p, ptr(menu), cString(&title))
}
예제 #2
0
파일: menubar.go 프로젝트: jimmygan/wxgo-1
func (b *menuBar) Append(menu Menu, title string) {
	p := wxPtr(b)
	if p == nil {
		return
	}
	menu.unhold()
	C.wxMenuBar_Append(p, wxPtr(menu), cString(&title))
}