The problem is when i want to create a subbuttons from a subbutton and not from the main button like below
button = toolbar.CreateButton("Spam", "", "")
button.SetTooltip("Button with subbuttons")
button.SetPopupStyle(1)
button.SetPicture(pict)
subbutton1 = button.CreateSubButton("Subbutton 1", "", "")
.....
the problem is here
subbutton1.SetTooltip("Button with subbuttons")
subbutton1.SetPopupStyle(1)
subbutton2 = subbutton1.CreateSubButton("Subbutton 2", "", "")
subbutton3 = subbutton1.CreateSubButton("Subbutton 3", "", "")
when i press subbutton1, subbutton2 and subbutton3 appears in the right
bottom corner of the screen. It doesnt appear next to subbutton1 as it is expected.