Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Mon Jul 07, 2008 4:27 am   

[2.30] Semi-bug with dock= function in MXP frames.
 
The function works, but it looks for the caption of the window instead of the name.

For example:

Code:
#MXP <FRAME action="open" name="test" title="Testimification" INTERNAL align="right">
#MXP <FRAME action="open" name="test2" INTERNAL align="TOP" dock="test">


Does not work. The 2nd window will just dock to the main client since it's caption is Testimification.. To make it work you have to do it like this:

Code:
#MXP <FRAME action="open" name="test" title="Testimification" INTERNAL align="right">
#MXP <FRAME action="open" name="test2" INTERNAL align="TOP" dock="Testimification">


So, while this function works, I'd think it should work based off the name of the window instead of the caption so that it behaves the same as every other function within the <FRAME> command.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jul 07, 2008 8:03 pm   
 
Confirmed and added to bug list.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Jul 11, 2008 5:09 am   
 
This is fixed for v2.31. CMUD will now check the Name of the window first. Only if that fails will it check for the window caption. This is needed because the general routine to "look for a matching window name" is used by several other commands in CMUD, such as the window: syntax, which has always allowed a window caption.

I have also added the separate Caption field to allow a window to easily have a caption different from the window name. The #NAME command now modifies the Caption rather than the window name.

Edited: Btw, CMUD 2.31 also returns an MXP version of 1.1 now. This will allow you to detect some of the new features, such as the Dock attribute and the character and percentage size attributes. Makes it a bit easier for you to tell if someone is running the working MXP in CMUD 2.31 or the old MXP from zMUD.

I'll try to get a chance to update the MXP documentation to reflect these changes.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net