Thread Tools Display Modes
Prev Previous Post   Next Post Next
06/23/18, 01:52 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Label with scrolling?

I have a ZO_ScrollContainer holding both a ZO_DefaultEditMultiLineForBackdrop and a CT_LABEL. When the Editbox is overflowing, I can scroll down. But when the Label is overflowing, I can see "..." at the bottom-left of it, and there's no scrolling.

I tried changing things around in all kinds of ways, but couldn't get any results. Couldn't find a simple example or virtual in the code, either. Any advice?

Code:
ScrollContainer = WINDOW_MANAGER:CreateControlFromVirtual("Somename_ScrollContainer", MainWindow, "ZO_ScrollContainer")
ScrollContainer.scrollChild = ScrollContainer:GetNamedChild("ScrollChild")		
ScrollContainer:SetAnchorFill(ItsBackdrop)
ScrollContainer:SetDrawLayer(0)	
ScrollContainer:SetDrawLevel(2)
ScrollContainer:SetDrawTier(0)
---------------------------------------------------------------------------------------------------	
Editbox = WINDOW_MANAGER:CreateControlFromVirtual("Somename_Contents", ScrollContainer, "ZO_DefaultEditMultiLineForBackdrop")	
Editbox:SetDrawLayer(0)
Editbox:SetDrawLevel(3)
Editbox:SetDrawTier(1)	
Editbox:SetMultiLine(true)
---------------------------------------------------------------------------------------------------	
Label = WINDOW_MANAGER:CreateControl("Somename_ContentsLabel", ScrollContainer, CT_LABEL)	
Label:SetAnchorFill(Editbox)
Label:SetDrawLayer(0)
Label:SetDrawLevel(3)
Label:SetDrawTier(1)
Label:SetMouseEnabled(true)
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Label with scrolling?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off