Wowpedia
Advertisement
Wowpedia
240,483
pages

Allows line wrapping and collapsing/expanding to fit text.

editBox:SetMultiLine(multiLine)
multiLine = editBox:IsMultiLine()

Argument/Return

multiLine 
boolean

Details

Example

Multi-line EditBox wrapped inside a ScrollFrame.

local scrollFrame = CreateFrame("ScrollFrame", nil, UIParent, "UIPanelScrollFrameTemplate")
scrollFrame:SetSize(300, 200)
scrollFrame:SetPoint("CENTER")

local editBox = CreateFrame("EditBox", nil, scrollFrame)
editBox:SetFontObject(ChatFontNormal)
editBox:SetMultiLine(true)
editBox:SetWidth(300)
scrollFrame:SetScrollChild(editBox)
Advertisement