|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Fri Nov 02, 2007 10:43 am
Problems making a window |
To make a new window I have attempted to use the following code:
Code: |
#VAR mwparams {scrolling=no|floating|left=200|top=200|height=100|force}
#MAKEWINDOW test open @mwparams |
This, or any variation of this, will always create a window docked to the top with some unknown, but apparently default, dimensions. AFAICT it is ignoring the options altoghther. I tried to put the literal string as part of the command and it didn't make any difference. It did the same thing under zMUD, so I suspect that it is my coding at fault here. However, I have spoken to one other person who attempted to float the windows and I was told that the only way it was archived was by having so many windows open that the client was forced to float the window for lack of docking space.
Any suggestions would be appreciated. |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Fri Nov 02, 2007 3:55 pm |
Sounds like a possible bug. Please post your CMUD version number and Windows version.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Nov 02, 2007 5:45 pm |
As far as I know #MAKEWINDOW has always been bugged. There were bug reports about it when it was first introduced in zMud, and I don't think it ever truly got fixed. With all the changes to docking and window placement capabilities I believe it became quite completely broken in CMud, and you are the first to mention it.
I would suggest that once the 2.10 beta is out it might be good to test all of #MAKEWINDOW's options and give thorough report on what works and what doesn't as well suggesting what needs to be added to work with the all docking features of CMud. Zugg has been talking about upgrading some of the underlying docking and toolbar components soon, and having such a report would be very helpful to him. When he does that upgrade will be about the best time possible to fix #MAKEWINDOW. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Nov 02, 2007 6:12 pm |
Actually, the issues with #MAKEWINDOW (and related MXP frames) are already fixed in v2.10 (or should be)
|
|
|
|
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Thu Dec 20, 2007 4:02 am |
OK, I have now CMUD 2.18 under Vista and #MAKEWINDOW does create a nice floating window with the following
Code: |
$params = {scroll=yes|floating|top=10%|left=50%|height=20C|width=40C|title="Test Window"}
#MAKEWINDOW test open $params
|
What doesn't seem to work for me is
The window stays put and the only way to get rid of it is by clicking on the close button and then manually deleting the setting from the package.
This happens also for docked windows and deleting the window manually can cause CMUD to hang. In other words after the window's utility expires, I would like to remove it and leave the package as it was before the window's creation. I want to do this under program control.
Now, I am willing to leave the window setting in the package, but when I reissue the #MAKEWINDOW a new setting is created instead of the old one being used. That is why I have been deleting it manually.
Any ideas would be appreciated. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jan 07, 2008 9:54 pm |
My guess is that you need to use #CLOSE with the window title:
#CLOSE "Test Window"
but I will take a closer look at this when I can. |
|
|
|
|
|