I am trying to use ShowAt to show a popup menu under the button that opens it. It works the first time but if I move the host and reopen the menu, the menu opens in the previous place, not under the button…on a different host it opens in another place…
Maybe the screen coordinates stuff does not work well and it wasn’t visible since Tracktion cannot be moved or minimized and always starts at top left of the screen (0, 0)?
Here is the code, the optionsButton is a child of the plugin editor
PopupMenu options;
options.addItem (1, “Play On Select”, true, playOnSelect );
int result = options.showAt( optionsButton->getScreenX(), optionsButton->getScreenY() + optionsButton->getHeight() );