How to move window?

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Lerio69
Posts: 29
Joined: Sat Sep 24, 2016 11:47 pm
Location: Italy

How to move window?

Post 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.
User avatar
Lerio69
Posts: 29
Joined: Sat Sep 24, 2016 11:47 pm
Location: Italy

Re: How to move window?

Post 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?
User avatar
Lerio69
Posts: 29
Joined: Sat Sep 24, 2016 11:47 pm
Location: Italy

Re: How to move window?

Post 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.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How to move window?

Post by plouf »

I also think there is no native way.
In this case rhis shoub be in wishlist :-)
Christos
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to move window?

Post 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.
plouf
Posts: 467
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How to move window?

Post 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"
Christos
Post Reply