How to have a list of options when clicking a TButton on Firemonkey?


By eelias I know that TButton on firemonkey let me add a TPopUp Menu. But it only works when you right click it.

I need make it open right below the button when you do the normal click.

PopupMenu.PopUp(X, Y) is based on the form I believe. How to translate the X,Y of the button (that is deep inside other layouts) to the same coordinate?

And when clicking and the PopUp is shown some weird behavior happens with the selection bar of the popup menu that disappear. The button keeps pressed, that is good.

…read more

Via: StackOverflow

Comments are closed.