Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ScrollingMessageFrame SetInsertMode

Last wiki revision 2012-04-11

Set whether new messages add to the top or bottom of a ScrollingMessageFrame.

ScrollingMessageFrame:SetInsertMode("mode")

  • Arguments
  • String
  • mode : "top" or "bottom"
  • Returns
  • nil

DEFAULT_CHAT_FRAME:SetInsertMode("top") DEFAULT_CHAT_FRAME:Clear

  • Example

New messages added to the DEFAULT_CHAT_FRAME are inserted at the top and scrolls the old messages down.

  • Result
  • A SetInsertMode to a ScrollingMessageFrame that already contains text appears to have no effect until it is cleared.
  • The usage error and a call to API ScrollingMessageFrame GetInsertMode seem to insist on using all-caps "TOP" or "BOTTOM", but only lower case "top" or "bottom" appear to work.

Source

https://warcraft.wiki.gg/wiki/API_ScrollingMessageFrame_SetInsertMode · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.