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

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

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

Post by sinisrus » Wed Jul 11, 2018 1:05 am

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: 245
Joined: Tue Apr 21, 2015 5:43 pm

Re: way

Post by sinisrus » Wed Jul 11, 2018 8:40 am

Sorry for Subject "way" I wanted to write => Why is not possible to set the Window Topedge or Leftedge ?

User avatar
airsoftsoftwair
Posts: 2615
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: way

Post by airsoftsoftwair » Wed Jul 11, 2018 11:01 am

It is against MUI guidelines. MUI's philosophy says that window positioning is done by the user, not by the application.

sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus » Fri Jul 13, 2018 8:59 am

Otherwise, the mui class "PopObject" could do it

Do you think it would be possible to add it to muiroyal?

User avatar
airsoftsoftwair
Posts: 2615
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

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

Post by airsoftsoftwair » Mon Jul 16, 2018 11:58 pm

What do you want to do?

sinisrus
Posts: 245
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus » Tue Jul 17, 2018 1:02 am

I want to open a window MUI next to a button (a popup)

User avatar
airsoftsoftwair
Posts: 2615
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

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

Post by airsoftsoftwair » Tue Jul 17, 2018 11:54 pm

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: 245
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus » Wed Jul 18, 2018 5:43 pm

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

Thank you

Post Reply