I'd like to show and hide a tooltip window, and it works, but the position of the window is always at the top left of the screen (the monitor screen).
Is there a way to position it, for example relative to the current mouse position?
My code for showing the window:
_preview = new PreviewWindow();
_preview.addEventListener(Event.CLOSE, onPreviewClose, false, 0, true);
_preview.showStatusBar = false;
_preview.type = CSXSWindowType.TOOLTIP;
PrreviewWindow is an mxml Window component.
Setting _preview.x moves the content of the window to the right but keeps the window itself at the top left of the screen.
I know you can change the position of a window using smt like
var winGeom:WindowGeometry = new WindowGeometry();
winGeom.topleftx = 50;
winGeom.toplefty = 50;
CSXSInterface.getInstance().requestStateChange(StateChangeEvent.WINDOW _MOVE, winGeom);
but that goes for the 'main' extension window. Or can I use this somehow for new windows - like my tooltip - as well?
Europe, Middle East and Africa