SC popupmainmenu location when using submenu param
Posted: 07 Oct 2021 23:16
I can't seem to get the X and Y params to work for cursor position when using the submenu param, but going from the docs it should be possible, eg
but they work when not using the submenu param, eg.
Additionally when supplying absolute X/Y params and using the submenu param it seems they are based on the XY window (plus titlebar+mainmenu) not the screen. eg. these show in 2 different places:
popupmainmenu "Edit", -1, -1;but they work when not using the submenu param, eg.
popupmainmenu , -1, -1; (also works without even using the X/Y params, since going by the docs they are set to -1 by default anyway). Additionally when supplying absolute X/Y params and using the submenu param it seems they are based on the XY window (plus titlebar+mainmenu) not the screen. eg. these show in 2 different places:
Code: Select all
popupMainMenu , 0, 0;
popupMainMenu "Go", 0, 0;