 |
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Sun Nov 23, 2008 7:28 pm
#MAKEWINDOW vs #MXP <FRAME> |
I have found that in order to invoke an already created, but inactive (i.e. invisible) window I cannot use #MAKEWIDOW OPEN <windowname>. This will create another window with the same name. However, if use #MXP <FRAME "windowname">, the window will open properly and remember its settings.
It could be that I simply don't know how to open an existing window with #MAKEWINDOW. Perhaps there should be a #OPEN command as a counterpart to #CLOSE. |
|
_________________ Sic itur ad astra. |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Nov 24, 2008 5:04 am |
It seems quite clear to me that #makewindow would, you know, make a window. You can use the #window command with just the name of the window as an argument to display it, or you can give it a string argument as well to display something in that window at the same time.
|
|
|
|
 |
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Mon Nov 24, 2008 10:11 am |
The point is, and I know I didn't make it clear, that if I create the window with #MXP <FRAME>, I can use the exact same line of code to later re-open the window. #MXP checks to see if the window exists before creating one. I can also modify the parameters for the existing window in that way. Not so with #MAKEWINDOW, apparently, even though they are supposed to be equivalent.
|
|
_________________ Sic itur ad astra. |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Nov 24, 2008 12:49 pm |
| Anaristos wrote: |
| they are supposed to be equivalent |
Where are you getting this? I've taken a brief look through the help files and the MXP spec and can't see anywhere that claims that this is the case. #MAKEWINDOW will always create a window because that's its purpose, but MXP might send the command again when the window's already open (if you reconnected, for example). So it makes sense. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 24, 2008 5:15 pm |
Fang is correct on this. #MAKEWINDOW is designed to *always* create a window, even with the same name, since no other command in CMUD will allow you to create a new window with a duplicate name. It is not supposed to be exactly the same as MXP FRAME. If you want the exact result of the MXP FRAME command, then use MXP FRAME, or use the normal #WINDOW command.
|
|
|
|
 |
|
|
|