Local m:wxMenu = New wxMenu.Create("Menu", 1)
m.append(10, "Item 1", "BLA Bla 1", wxITEM_NORMAL)
m.append(11, "Item 2", "BLA Bla 2", wxITEM_NORMAL)
SearchBAR = New wxToolBar.Create(BottomPanel[1], 32740, 0, 0, _w, _h, 0)
SearchBAR.AddTool(18, "Test", GetSubPic(20), Null, wxITEM_DROPDOWN)
SearchBAR.SetDropdownMenu(18, m)
SearchBAR.Realize() I don't know what I am do wrong? I got the button ok and the dropdown arrow next to it is ok but no menu I even try this:Local b:wxToolBarToolBase = searchbar.FindById(18)
b.SetDropdownMenu(m)
SearchBAR.Realize()
|