EditBox control
I seem to be having problems getting an EditBox control to show up when defined in XML. Has anyone successfully done this? Everything else in the control is visible and usable.
EDIT: Here is how I am trying to define it atm: Code:
<EditBox name="$(parent)Text" editEnabled="true" font="ZoFontWindowSubtitle" color="CFDCBD" textType="TEXT_TYPE_ALL" multiLine="false" newLineEnabled="false" maxInputCharacters="20000"> |
Are you sure your edibox isn't there? Perhaps you just need a background for it.
|
I made a background in the parent control. I can't click on it and type anything and any controls that are positioned below the EditBox aren't anchoring right.
EDIT: Okay, looks like I might have been anchoring it wrong. It looks like it is there now (things position around it correctly) but I can't seem to click inside to get a cursor and start typing. Any ideas? |
Did you enable the mouse for your control?
|
Quote:
Code:
<TopLevelControl name="EditBoxSample" mouseEnabled="true"> |
Has anyone successfully defined an EditBox control in XML? About to just give up and try in lua, but would really prefer the XML approach unless its bugged/impossible.
On that note, if anyone gets bored and can try the XML above and let me know if you see the same thing as me that would be awesome as well! |
You need to tell the edit box when it should get focus. The following should be the normal behaviour of an edit box.
Code:
<OnMouseDown> |
Quote:
Am I supposed to set the focus back to a different object so the character can continue to move, etc? Seems weird that an add-on can break the game that badly. Regardless, this has definitely set me on the right path, I appreciate it! |
inheriting from ZO_DefaultTextEdit might help with strange behaviour, if not some your attributes are the most likely culprit of that issue. i can't test it right now.
|
because I found it in my search after "Editbox"
This seams to work pretty good: Code:
<Backdrop name="$(parent)ThresholdAmountBG" tier="HIGH" inherits="ZO_SingleLineEditBackdrop_Keyboard"> |
All times are GMT -6. The time now is 10:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI