I also got another little problem.
It’s that I want to open a window and place it at the center of the screen when user clicks the menu.
Let’s say I want to open a window named Sample. I tried it like that
So I place the following code for that menu in the menu editor.
But When I test it, It doesn’t show at the center. And another problem is that I have to click the menu twice to show that window in center. I want it to show at the center of the screen at the first time user click the menu. I hope someone help me.