Shoutbox

DialogTmpl Margin element? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: DialogTmpl Margin element? (/showthread.php?tid=91472)

DialogTmpl Margin element? by effection on 07-14-2009 at 01:07 PM

Quick question, the "Margin" value for "Left/RightControsl" in the dialog template...Is it supposed to be an array of margins or is it just the one margin? The reason i ask is in the schema it is set to be unbounded when xsd.exe is passed through it it takes it to be an array of unsigned integers and you can't set a default value for individual array elements

code:

<xs:element name="LeftControls" minOccurs="0">
    <xs:complexType>
        <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element name="Margin" type="xs:unsignedInt" default="10" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Adjusts the space between this button and the last one.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Control" type="pli:Control"/>
        </xs:sequence>
    </xs:complexType>
</xs:element>


Nevermind, worked it out! It is supposed to be an array unfortunately.