Widget handlers

From Wowpedia
Jump to: navigation, search

This is a list of scripts handlers that can be set on each widget type, along with the arguments that are passed.

Animation

OnAttributeChanged (self, key, value)
OnFinished (self,requested)
OnLoad (self)
OnPause (self)
OnPlay (self)
OnStop (self,requested)
OnUpdate (self,elapsed)

AnimationGroup

OnAttributeChanged (self, key, value)
OnFinished (self,requested)
OnLoad (self)
OnPause (self,loopState)
OnPlay (self)
OnStop (self,requested)
OnUpdate (self,elapsed)

Button

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnClick (self,button,down)
OnDoubleClick (self,button)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
PostClick (self,button,down)
PreClick (self,button,down)

CheckButton

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnClick (self,button,down)
OnDoubleClick (self,button)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

ColorSelect

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnColorSelect (self,r,g,b)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

DressUpModel

OnAttributeChanged (self, key, value)
OnAnimFinished
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnUpdateModel (self)

EditBox

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnCursorChanged (self,x,y,w,h)
OnDragStart (self,button)
OnDragStop (self)
OnEditFocusGained (self)
OnEditFocusLost (self)
OnEnter (self, motion)
OnEnterPressed (self)
OnEscapePressed (self)
OnEvent (self,event,...)
OnHide (self)
OnHyperlinkClick (self,link,text,button)
OnHyperlinkEnter (self,link,text)
OnHyperlinkLeave (self,link,text)
OnInputLanguageChanged (self,language)
OnKeyDown (self,key)), Never fires. it is probably used internally by blizzard to insert the keys
OnKeyUp (self,key), Never fires. it is probably used internally by blizzard to insert the keys
OnLeave (self,motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnSpacePressed (self)
OnTabPressed (self)
OnTextChanged (self,isUserInput)
OnTextSet (self)
OnUpdate (self,elapsed)

Frame

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

GameTooltip

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnTooltipAddMoney (self,cost)
OnTooltipCleared (self)
OnTooltipSetAchievement
OnTooltipSetDefaultAnchor
OnTooltipSetItem (self)
OnTooltipSetSpell (self)
OnTooltipSetUnit (self)
OnUpdate (self,elapsed)

LootButton

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnClick (self,button,down)
OnDoubleClick (self,button)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

MessageFrame

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

Minimap

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

Model

OnAttributeChanged (self, key, value)
OnAnimFinished (self)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnUpdateModel (self)

PlayerModel

OnAttributeChanged (self, key, value)
OnAnimFinished (self)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnUpdateModel (self)

ScrollFrame

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide
OnHorizontalScroll (self,offset)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnScrollRangeChanged (self,xrange,yrange)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnVerticalScroll (self,offset)

ScrollingMessageFrame

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnHyperlinkClick (self,link,text,button)
OnHyperlinkEnter (self,link,text)
OnHyperlinkLeave (self,link,text)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMessageScrollChanged
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

SimpleHTML

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnHyperlinkClick (self,link,text,button)
OnHyperlinkEnter (self,link,text)
OnHyperlinkLeave (self,link,text)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)

Slider

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnValueChanged (self,value)

StatusBar

OnAttributeChanged (self, key, value)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnValueChanged (self,value)

TabardModel

OnAttributeChanged (self, key, value)
OnAnimFinished (self)
OnChar (self,text)
OnDragStart (self,button)
OnDragStop (self)
OnEnter (self, motion)
OnEvent (self,event,...)
OnHide (self)
OnKeyDown (self,key)
OnKeyUp (self,key)
OnLeave (self, motion)
OnLoad (self)
OnMouseDown (self,button)
OnMouseUp (self,button)
OnMouseWheel (self,delta)
OnReceiveDrag (self)
OnShow (self)
OnSizeChanged (self,w,h)
OnUpdate (self,elapsed)
OnUpdateModel (self)