Why is not possible to set the Window Topedge or Leftedge ?

Discuss GUI programming with the MUI Royale plugin here
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Why is not possible to set the Window Topedge or Leftedge ?

Post by sinisrus »

Hello,

Why is not possible to set the Window Topedge or Leftedge ?
After run my script is not possible to change/set position of my windows muiroyal?

thank you
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: way

Post by sinisrus »

Sorry for Subject "way" I wanted to write => Why is not possible to set the Window Topedge or Leftedge ?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: way

Post by airsoftsoftwair »

It is against MUI guidelines. MUI's philosophy says that window positioning is done by the user, not by the application.
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Why is not possible to set the Window Topedge or Leftedge ?

Post by sinisrus »

Otherwise, the mui class "PopObject" could do it

Do you think it would be possible to add it to muiroyal?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Why is not possible to set the Window Topedge or Leftedge ?

Post by airsoftsoftwair »

What do you want to do?
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Why is not possible to set the Window Topedge or Leftedge ?

Post by sinisrus »

I want to open a window MUI next to a button (a popup)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Why is not possible to set the Window Topedge or Leftedge ?

Post by airsoftsoftwair »

Well, as you can see from the MUI docs MUI has the I.G applicability for Window.LeftEdge so MUI Royale can‘t do anything against this limitation. However, you can simply dynamically create and destroy your popup window using mui.CreateObject() and then it‘s easily possible to use Window.LeftEdge and Window.TopEdge because they are allowed at initialisation time. Check out the examples to see how to dynamically create windows.
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Why is not possible to set the Window Topedge or Leftedge ?

Post by sinisrus »

Ok, it's complicated but it's a solution ...

Thank you
Post Reply