View Single Post
05/30/18, 02:24 PM   #7
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Originally Posted by sirinsidiator View Post
The ZO_ScrollingSavingEditBox is a highly complex object that combines several controls and uses lua code to achieve the behavior you see with the MotD. You cannot replicate it just by letting an edit box control inherit its template. Instead you'd have to use it as seen in the code for the guild MotD.

I'd also recommend you look at the source code extract on github, since UESP doesn't seem to include the xml files.

Your advice to check the .xml on github really helped. I saw that it is the case they just use 2 controls, one for edit and one for display, and switch them. I did just that, and now it works as expected. Just toggle SetHidden and TakeFocus OnMouseUp if upInside and reverse OnFocusLost.

Thanks for helping! Saved me on this one.
  Reply With Quote