Page 1 of 1

Unable to set width and height of MUI window, bug?

Posted: Sat Feb 04, 2017 8:03 pm
by marko
Hi, I have MUI window with id = "window"...

I'm able to read width and height of the window but not set it, HW exits with an error.

MUI Royal doc states that Window.Height -- set/get, so this should be possible...

Am I doing something wrong or is it a bug thanks?

w = mui.Get("window", "width")
h = mui.Get("window", "height")

DebugPrint("w =",w, "h =", h)

mui.Set("window", "width", w)
mui.Set("window", "height", h)


OS: AOS4.1 FEu1

Re: Unable to set width and height of MUI window, bug?

Posted: Sat Feb 04, 2017 8:31 pm
by airsoftsoftwair
No, that's not a bug. The "set" in the documentation refers to the fact that the tag can be set at initialization time but not later. You can see that by looking at the applicability which is IG, not ISG.

Re: Unable to set width and height of MUI window, bug?

Posted: Sat Feb 04, 2017 10:07 pm
by marko
Ok, thanks for that speedy reply.

But then the question is, is there a way to set a new width and height of the window after initialization.

I ask because although the size is remembered when restarting the program but I want the program to remember the size even after a restart of the OS (I have MUIID set for the window in the xml file).

Maybe I have missed something, or is it not possible..?

Re: Unable to set width and height of MUI window, bug?

Posted: Mon Feb 06, 2017 8:39 pm
by airsoftsoftwair
Hmm, MUI programs should automatically remember their size and position, even after a restart. Does this work for other MUI programs on your system?

Re: Unable to set width and height of MUI window, bug?

Posted: Thu Feb 09, 2017 10:21 pm
by marko
airsoftsoftwair wrote:Does this work for other MUI programs on your system?
Hmm, nope, none that I can find :S

Re: Unable to set width and height of MUI window, bug?

Posted: Fri Feb 10, 2017 11:26 pm
by airsoftsoftwair
Then check your MUI prefs settings under "Windows"... there should be an option which says that window positions and sizes should be stored permanently. Tick that.