EditBox:SetMultiLine
Jump to navigation
Jump to search
Sets whether the edit box shows more than one line of text.
EditBox:SetMultiLine([multiline])
Arguments
- multiline
- boolean?
= false
Details
- Automated collapsing/expanding ignores Region:SetHeight(), but the size may be fixed with Region:SetPoint().
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)