I would like to use the showAt() method to show a popup that’s aligned with a Rectangle, just as I would do with a Component, that unfortunately I don’t have in this case. Looking at the code, it seems that it would be easy to add the following code to the PopupMenu class.
int PopupMenu::showAt (const Rectangle<int> screenRect,
const int itemIdThatMustBeVisible,
const int minimumWidth,
const int maximumNumColumns,
const int standardItemHeight,
return showMenu (screenRect,
true, 0, callback);