function Window.SetEntryText(R,D)Entry.TextBox.Text=D if R:IsVisible()then Entry.TextBox:CaptureFocus()end end

function Window:SetEntryText(text)
	Entry.TextBox.Text = text

	if self:IsVisible() then
		Entry.TextBox:CaptureFocus()
	end
end
