EditBox:SetText doesn't show MultiLine correctly
Hello!
I need some help.. I didn't find a way to fix it with a patch. I have an EditBox (b) in the ScrollFrame (a): Code:
a = CreateFrame("ScrollFrame", "a", myFRAME, "UIPanelScrollFrameTemplate") I see only "Test Line 2 lala". But if I click Ctrl+A and copy the selected text - there is the first line too. What it can be? I see only the last line and sometimes not the whole line, just it's end, example: /script b:SetText("Test Line 1 tdsfsdf dfd data\r\nTest Line 2 > fdsf dfdfsdf lala") I see: t Line 2 > fdsf dfdfsdf lala It was changed something for special characters? |
Try b:SetMultiLine(true) may be?
|
Have you tried SetMultiline(true)?
|
Does b:SetMultiLine(true) fix your problem?
|
Thank you!
Yes, it was MultiLine... I spent 4 hours to find a problem, I've never passed true before as a parameter, so now I've to check other functions and add "true" eveywhere |
Not all methods require an argument. For example, :Show() and :Hide() not take any arguments. Technically you can pass them arguments anyway, but they're just ignored.
Find your widget type here to get a list of all its methods and what arguments they need: http://wowprogramming.com/docs/widgets |
All times are GMT -6. The time now is 10:47 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI