| Script |
Description |
Available for |
| OnAnimFinished | Run when the model's animation finishes | Model, PlayerModel, DressUpModel, TabardModel |
| OnAttributeChanged | Run when a frame attribute is changed | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnChar | Run for each text character typed in the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnCharComposition | Run when the edit box's input composition mode changes | EditBox |
| OnClick | Run when the button is clicked | Button, CheckButton |
| OnColorSelect | Run when the color select frame's color selection changes | ColorSelect |
| OnCursorChanged | Run when the position of the text insertion cursor in the edit box changes | EditBox |
| OnDisable | Run when the frame is disabled | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnDoubleClick | Run when the button is double-clicked | Button, CheckButton |
| OnDragStart | Run when the mouse is dragged starting in the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnDragStop | Run when the mouse button is released after a drag started in the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnEditFocusGained | Run when the edit box becomes focused for keyboard input | EditBox |
| OnEditFocusLost | Run when the edit box loses keyboard input focus | EditBox |
| OnEnable | Run when the frame is enabled | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnEnter | Run when the mouse cursor enters the frame's interactive area | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnEnterPressed | Run when the Enter (or Return) key is pressed while the edit box has keyboard focus | EditBox |
| OnEscapePressed | Run when the Escape key is pressed while the edit box has keyboard focus | EditBox |
| OnEvent | Run whenever an [[docs/events|event]] fires for which the frame is registered | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation, Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnFinished | Run when the animation (or animation group) finishes animating | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation |
| OnHide | Run when the frame's visbility changes to hidden | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnHorizontalScroll | Run when the scroll frame's horizontal scroll position changes | ScrollFrame |
| OnHyperlinkClick | Run when the mouse clicks a hyperlink in the scrolling message frame or SimpleHTML frame | EditBox, ScrollingMessageFrame, SimpleHTML |
| OnHyperlinkEnter | Run when the mouse moves over a hyperlink in the scrolling message frame or SimpleHTML frame | EditBox, ScrollingMessageFrame, SimpleHTML |
| OnHyperlinkLeave | Run when the mouse moves away from a hyperlink in the scrolling message frame or SimpleHTML frame | EditBox, ScrollingMessageFrame, SimpleHTML |
| OnInputLanguageChanged | Run when the edit box's language input mode changes | EditBox |
| OnKeyDown | Run when a keyboard key is pressed if the frame is keyboard enabled | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnKeyUp | Run when a keyboard key is released if the frame is keyboard enabled | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnLeave | Run when the mouse cursor leaves the frame's interactive area | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnLoad | Run when the frame is created | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation, Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnLoop | Run when the animation group's loop state changes | AnimationGroup |
| OnMessageScrollChanged | Run when the scrolling message frame's scroll position changes | ScrollingMessageFrame |
| OnMinMaxChanged | Run when the slider's or status bar's minimum and maximum values change | Slider, StatusBar |
| OnMouseDown | Run when a mouse button is pressed while the cursor is over the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnMouseUp | Run when the mouse button is released following a mouse down action in the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnMouseWheel | Run when the frame receives a mouse wheel scrolling action | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnMovieFinished | Run when a movie frame's movie ends | MovieFrame |
| OnMovieHideSubtitle | Runs when the movie's most recently displayed subtitle should be hidden | MovieFrame |
| OnMovieShowSubtitle | Runs when a subtitle for the playing movie should be displayed | MovieFrame |
| OnPause | Run when the animation (or animation group) is paused | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation |
| OnPlay | Run when the animation (or animation group) begins to play | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation |
| OnReceiveDrag | Run when the mouse button is released after dragging into the frame | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnScrollRangeChanged | Run when the scroll frame's scroll position is changed | ScrollFrame |
| OnShow | Run when the frame becomes visible | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnSizeChanged | Run when a frame's size changes | Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnSpacePressed | Run when the space bar is pressed while the edit box has keyboard focus | EditBox |
| OnStop | Run when the animation (or animation group) is stopped | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation |
| OnTabPressed | Run when the Tab key is pressed while the edit box has keyboard focus | EditBox |
| OnTextChanged | Run when the edit box's text is changed | EditBox |
| OnTextSet | Run when the edit box's text is set programmatically | EditBox |
| OnTooltipAddMoney | Run when an amount of money should be added to the tooltip | GameTooltip |
| OnTooltipCleared | Run when the tooltip is hidden or its content is cleared | GameTooltip |
| OnTooltipSetAchievement | Run when the tooltip is filled with information about an achievement | GameTooltip |
| OnTooltipSetDefaultAnchor | Run when the tooltip is repositioned to its default anchor location | GameTooltip |
| OnTooltipSetEquipmentSet | Run when the tooltip is filled with information about an equipment set | GameTooltip |
| OnTooltipSetFrameStack | Run when the tooltip is filled with a list of frames under the mouse cursor | GameTooltip |
| OnTooltipSetItem | Run when the tooltip is filled with information about an item | GameTooltip |
| OnTooltipSetQuest | Run when the tooltip is filled with information about a quest | GameTooltip |
| OnTooltipSetSpell | Run when the tooltip is filled with information about a spell | GameTooltip |
| OnTooltipSetUnit | Run when the tooltip is filled with information about a unit | GameTooltip |
| OnUpdate | Run each time the screen is drawn by the game engine | Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation, Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel |
| OnUpdateModel | Run when a model changes or animates | Model, PlayerModel, DressUpModel, TabardModel |
| OnValueChanged | Run when the slider's or status bar's value changes | Slider, StatusBar |
| OnVerticalScroll | Run when the scroll frame's vertical scroll position changes | ScrollFrame |
| PostClick | Run immediately following the button's `OnClick` handler with the same arguments | Button, CheckButton |
| PreClick | Run immediately before the button's `OnClick` handler with the same arguments | Button, CheckButton |