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
Unable to set width and height of MUI window, bug?
Unable to set width and height of MUI window, bug?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
http://www.m4rko.com/amiga
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Unable to set width and height of MUI window, bug?
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?
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..?
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..?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
http://www.m4rko.com/amiga
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Unable to set width and height of MUI window, bug?
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?
Hmm, nope, none that I can find :Sairsoftsoftwair wrote:Does this work for other MUI programs on your system?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
http://www.m4rko.com/amiga
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Unable to set width and height of MUI window, bug?
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.