WoW:XML/EditBox: Difference between revisions

263 bytes removed ,  4 October 2012
(Reduce indent size in code example)
Line 6: Line 6:


==Elements==
==Elements==
{<[[XML/FontString|FontString]]>}, <[[XML/ColorType|HighlightColor]]>, <[[XML/Inset|TextInsets]]>
* <[[XML/FontString|FontString]]> - the font to be used for the textbox text, use this or the font attribute
* <HighlightColor> ([[XML/Color|Color]]) - the highlight color for the textbox text
* <TextInsets> ([[XML/Inset|Inset]])


==Attributes==
==Attributes==
Line 33: Line 35:


  <EditBox name="$parentEditBox" letters="80">
  <EditBox name="$parentEditBox" letters="80">
     <Size>
     <Size x="100" y="32" />
        <AbsDimension x="100" y="32"></AbsDimension>
    </Size>
     <Anchors>
     <Anchors>
         <Anchor point="LEFT">
         <Anchor point="LEFT">
             <Offset>
             <Offset x="50" y="0" />
                <AbsDimension x="50" y="0"></AbsDimension>
            </Offset>
         </Anchor>
         </Anchor>
     </Anchors>
     </Anchors>
Line 46: Line 44:
         <Layer level="BACKGROUND">
         <Layer level="BACKGROUND">
             <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
             <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
                 <Size>
                 <Size x="75" y="32" />
                    <AbsDimension x="75" y="32"/>
                </Size>
                 <Anchors>
                 <Anchors>
                     <Anchor point="LEFT">
                     <Anchor point="LEFT">
                         <Offset>
                         <Offset x="-10" y="0" />
                            <AbsDimension x="-10" y="0"/>
                        </Offset>
                     </Anchor>
                     </Anchor>
                 </Anchors>
                 </Anchors>
Line 59: Line 53:
             </Texture>
             </Texture>
             <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
             <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
                 <Size>
                 <Size x="75" y="32" />
                    <AbsDimension x="75" y="32"/>
                </Size>
                 <Anchors>
                 <Anchors>
                     <Anchor point="RIGHT">
                     <Anchor point="RIGHT">
                         <Offset>
                         <Offset x="10" y="0" />
                            <AbsDimension x="10" y="0"/>
                        </Offset>
                     </Anchor>
                     </Anchor>
                 </Anchors>
                 </Anchors>
Line 74: Line 64:
     </Layers>
     </Layers>
     <Scripts>
     <Scripts>
         <OnLoad></OnLoad>
         <OnLoad>
        </OnLoad>
     </Scripts>
     </Scripts>
     <FontString inherits="ChatFontNormal"></FontString>
     <FontString inherits="ChatFontNormal" />
  </EditBox>
  </EditBox>


[[Image:Editbox.jpg]]
[[Image:Editbox.jpg]]
[[Category:XML elements]]
[[Category:XML elements]]