View Single Post
06/03/18, 12:50 AM   #4
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Great suggestions.

This bug doesn't happen with Mail messages, probably because the character limit is pretty tight.

I tried again, removing the OnTextChanged handler from my box, and it still crashes.

This is the code I use (which otherwise works as expected):
Code:
NBUI.NB1RightPage_Contents = WINDOW_MANAGER:CreateControlFromVirtual("NBUI_NB1RightPage_Contents", NBUI.NB1RightPage_ScrollContainer, "ZO_DefaultEditMultiLineForBackdrop")	
	NBUI.NB1RightPage_Contents:SetColor(0, 0, 0, 0.7)		
	NBUI.NB1RightPage_Contents:SetDrawLayer(0)
	NBUI.NB1RightPage_Contents:SetDrawLevel(3)
	NBUI.NB1RightPage_Contents:SetDrawTier(1)	
	NBUI.NB1RightPage_Contents:SetFont("ZoFontBookPaper")
	NBUI.NB1RightPage_Contents:SetMaxInputChars(2048)
	NBUI.NB1RightPage_Contents:SetMultiLine(true)
	NBUI.NB1RightPage_Contents:SetHidden(true)

For the sake of this experiment I just copied and pasted the whole page from:
https://en.wikipedia.org/wiki/List_o...ode_characters