Get value of selectbutton in toolbar

I posted the same problem and a solution is to deal with openmenu event on select button with sub items.
I am still working about it, but if you would read the answer, here is the link: