Align a TPopupMenu to the right hand side of the form?

Viewed 1795

How can a TPopupMenu be aligned to the right hand side of a form? The problem is that there doesn't seem to be a way to get the width of the Popup menu before you call Popup(X, Y: Integer).

I'm trying to get a behavior similar to that of the system menu in Chrome.

enter image description here

2 Answers
Related