View Single Post
02-23-21, 04:34 PM   #5
BloodLilly
A Murloc Raider
Join Date: Feb 2021
Posts: 4
Yeah, it's doing that because I want the editbox to be a set size, or if it expands with more lines, doesn't go beyond that size. If there are more lines after that, the lettering would scroll within the box.

I'm trying to figure out a way to have the text scroll within the set edit frame box.

EDIT:

Okay, so after reloading a few times, the Addon works... Kinda. But it's doing what you said now and is acting in the way that the more you type the bigger the box gets. However, this isn't what I want as it'll end up covering the chat box and cover previous messages, that I may be replying to. I'd like it to stay at the static fixed size and the text to scroll within it.

EDIT2:

I've added an image of what it looks like when the addon loads up. As you can see there's now a massive gap beneath the chat box and the edit box, This is also what happens when I also use your code Fizzlemizz. The only problem is, it's not really what I want it to do.

EDIT3:

I'm not quite sure why running:

Code:
/run local editBox = DEFAULT_CHAT_FRAME.editBox; editBox:ClearAllPoints(); 
editBox:SetPoint("TOPLEFT",ChatFrame1,"TOPRIGHT",0,0); 
editBox:SetPoint("BOTTOMLEFT",ChatFrame1,"BOTTOMRIGHT",0,-3); 
editBox:SetPoint("TOPLEFT",ChatFrame1,"BOTTOMLEFT",0,-93); 
editBox:SetPoint("TOPRIGHT",ChatFrame1,"BOTTOMRIGHT",23,0);
ChatFrame1EditBox:SetMultiLine(true)
In the in-game chat, causes the option I prefer (The image from my second post) and running:

Code:
ChatFrame1EditBox:ClearAllPoints(); 
ChatFrame1EditBox:SetPoint("TOPLEFT",ChatFrame1,"TOPRIGHT",0,0); 
ChatFrame1EditBox:SetPoint("BOTTOMLEFT",ChatFrame1,"BOTTOMRIGHT",0,-3); 
ChatFrame1EditBox:SetPoint("TOPLEFT",ChatFrame1,"BOTTOMLEFT",0,-93); 
ChatFrame1EditBox:SetPoint("TOPRIGHT",ChatFrame1,"BOTTOMRIGHT",23,0);
ChatFrame1EditBox:SetMultiLine(true)
Causes the outcome that I'm not to keen on (The image in the post)

EDIT4:

So I managed to get it to load the way I wanted to, now I just need to see if I can find out how to do the scrolling bit.

Code:
local frame=CreateFrame("Frame");
frame:RegisterEvent("PLAYER_LOGIN");
frame:SetScript("OnEvent",function(self,event,...)
local editBox = DEFAULT_CHAT_FRAME.editBox; editBox:ClearAllPoints()
editBox:SetPoint("TOPLEFT",ChatFrame1,"TOPRIGHT",0,0) 
editBox:SetPoint("BOTTOMLEFT",ChatFrame1,"BOTTOMRIGHT",0,-3) 
editBox:SetPoint("TOPLEFT",ChatFrame1,"BOTTOMLEFT",0,-93) 
editBox:SetPoint("TOPRIGHT",ChatFrame1,"BOTTOMRIGHT",23,0)
ChatFrame1EditBox:SetMultiLine(true)
end);
Attached Thumbnails
Click image for larger version

Name:	Edit2.PNG
Views:	114
Size:	133.3 KB
ID:	9590  

Last edited by BloodLilly : 02-23-21 at 05:58 PM.
  Reply With Quote