Page 1 of 1
How to move window?
Posted: Wed May 31, 2023 12:01 pm
by Lerio69
I use RapaGUI with one Display and I want to change position of Window when I use
ChangeDisplaySize().
I try to use
MoveDisplay() but not work and I have not found any instructions to perform this action.
Re: How to move window?
Posted: Wed May 31, 2023 4:48 pm
by Lerio69
I try to use command:
moai.Set("mainwin","top","centered")
but I receive this message:
Error in line 50 : Attribute "top" not recognized for this class!
So, the only way to change position of window is to do manually or to define it in the xml file?
Re: How to move window?
Posted: Wed May 31, 2023 6:10 pm
by Lerio69
I found a solution
Code: Select all
ChangeDisplaySize(newWidth, newHeight)
moai.Set("mainwin","Open",True)
This work and when I change display size window is reopen at position set in xml file. However I think it doesn't make much sense. The window is already open, so this command should have no effect.
For some cases this is ok, but if I want move window in a new position I can't.
Re: How to move window?
Posted: Thu Jun 01, 2023 8:51 am
by plouf
I also think there is no native way.
In this case rhis shoub be in wishlist

Re: How to move window?
Posted: Sun Jun 04, 2023 11:32 am
by airsoftsoftwair
I agree that this would be nice to have. The reason why it's not in RapaGUI is that MUI doesn't allow to programmatically change a window's position. Of course it can be worked around by using Intuition directly instead of MUI so I think I can add this for a future version.
Re: How to move window?
Posted: Sun Jun 04, 2023 11:36 am
by plouf
The fact that some OS have some limitations should not be the bottleneck of a lot ,mainly wide used, functions in other OSes
Imho if limitatios exists for some reason i. Some oses e.g amigaos3 / android etc.
The feautire can be added, and leave it in manual as "future planned for X os"
Re: How to move window?
Posted: Tue Aug 13, 2024 9:53 pm
by airsoftsoftwair
Code: Select all
- New: The Window.Left, Window.Top, Window.Width, and Window.Height attributes can now also be set so the
applicability of them is ISG now; note that if you set those attributes, you must always specify a
numeric value; the special values like "Centered" are only supported at initialization time