Example #1
0
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))
}
Example #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))
}