why is the click event a disaster??
works very fine for me, you can create your menu in designer and but some buttons with the same clickevent, put a value to button.tag
and get the value via Sender like this u got only 1 click event and should work very well
i use it like this in my apps and the good thing is you can costumize it as you want not like picker where it is not costumizeable...
B4X:
sub btn_click
dim b as button = Sender
if b.tag = "button1" then 'first button in Menu was clicked
.... 'here what you want to do when button1 was clicked
else if b.tag = "button2" then 'second button in Menu was clicked
... 'here what you want to do when button2 was clicked
end if
end sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.