示例#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
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))
}