m
Move page script moved page XML/EditBox to WoW:XML/EditBox without leaving a redirect
(Reduce indent size in code example) |
m (Move page script moved page XML/EditBox to WoW:XML/EditBox without leaving a redirect) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{uixmlelem}} | |||
Runtime object: [[UIOBJECT_EditBox|EditBox]] | == Inheritance == | ||
: Inherited by: none, Inherits: <[[XML/Frame|Frame]]>, Runtime object: [[UIOBJECT_EditBox|EditBox]] | |||
: Defined in: [[XML/Frames|Frames]], [[XML/Ui|Ui]] | |||
==Elements== | == Elements == | ||
* <[[XML/FontString|FontString]]> - the font to be used for the textbox text, use this or the font attribute | |||
* <nowiki><HighlightColor></nowiki> ([[XML/Color|Color]]) - the highlight color for the textbox text | |||
* <nowiki><TextInsets></nowiki> ([[XML/Inset|Inset]]) | |||
==Attributes== | == Attributes == | ||
* font {{attrtype|string}} - name of one of the predefined fonts to use in your EditBox. For example, "GameFontNormal". | |||
* letters {{attrtype|int|0}} - maximum number of letters which can be entered in this EditBox. Zero means no character limit. | |||
* blinkSpeed {{attrtype|float|0.5}} - speed of cursor blinking, interval in seconds between "blinks". | |||
* numeric {{attrtype|boolean|false}} - if true, then only digits 0-9 can be entered in this EditBox | |||
* password {{attrtype|boolean|false}} - if true, then asterisks will be displayed instead of whatever text you enter. | |||
* multiLine {{attrtype|boolean|false}} - multi-line EditBox | |||
* historyLines {{attrtype|int|0}} - Number of lines to keep as a "history" for this editbox. You can cycle through editbox' history with arrows Up and Down (or Alt+Up, Alt+Down if attribute 'ignoreArrows' set to true) | |||
* autoFocus {{attrtype|boolean|true}} - if true, then this EditBox will automatically receive keyboard focus when it is displayed. | |||
* ignoreArrows {{attrtype|boolean|false}} - if false, then pressing arrows on keyboard will move cursor around the EditBox. If set to true, then EditBox will ignore arrows and they will instead turn around your character in game world. In this case you can still move text cursor around your editbox with Alt-arrows. | |||
==Description== | == Description == | ||
=== Example === | |||
Included in [[XML | Included in [[XML/Backdrop|Backdrop]] | ||
<EditBox name="$parentEditBox" letters="80"> | <EditBox name="$parentEditBox" letters="80"> | ||
<Size | <Size x="100" y="32" /> | ||
<Anchors> | <Anchors> | ||
<Anchor point="LEFT"> | <Anchor point="LEFT"> | ||
<Offset | <Offset x="50" y="0" /> | ||
</Anchor> | </Anchor> | ||
</Anchors> | </Anchors> | ||
| Line 46: | Line 35: | ||
<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" /> | ||
<Anchors> | <Anchors> | ||
<Anchor point="LEFT"> | <Anchor point="LEFT"> | ||
<Offset | <Offset x="-10" y="0" /> | ||
</Anchor> | </Anchor> | ||
</Anchors> | </Anchors> | ||
| Line 59: | Line 44: | ||
</Texture> | </Texture> | ||
<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right"> | <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right"> | ||
<Size | <Size x="75" y="32" /> | ||
<Anchors> | <Anchors> | ||
<Anchor point="RIGHT"> | <Anchor point="RIGHT"> | ||
<Offset | <Offset x="10" y="0" /> | ||
</Anchor> | </Anchor> | ||
</Anchors> | </Anchors> | ||
| Line 74: | Line 55: | ||
</Layers> | </Layers> | ||
<Scripts> | <Scripts> | ||
<OnLoad></OnLoad> | <OnLoad> | ||
</OnLoad> | |||
</Scripts> | </Scripts> | ||
<FontString inherits="ChatFontNormal" | <FontString inherits="ChatFontNormal" /> | ||
</EditBox> | </EditBox> | ||
[[Image: | [[Image:wow_editbox.jpg]] | ||
[[Category:XML elements]] | [[Category:XML elements]] | ||