function Window.SetEntryText(R,a)Entry.TextBox.Text=a if R:IsVisible()then Entry.TextBox:CaptureFocus()Entry.TextBox.CursorPosition=#a+1 Window:UpdateWindowHeight()end end
--- Sets the text in the command bar text box, and captures focus
function Window:SetEntryText(text)
	Entry.TextBox.Text = text

	if self:IsVisible() then
		Entry.TextBox:CaptureFocus()
		Entry.TextBox.CursorPosition = #text + 1
		Window:UpdateWindowHeight()
	end
end
