Widget handlers

Allowed Widget Script Handlers
This is a list of all of the scripts allowed for each frame type (as returned by the :GetFrameType method) along with the arguments that are passed. As of patch 4.0.1, the arguments are no longer global and must be passed to the handlers if they are defined in XML.

Button

 * 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

 * 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

 * 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

 * 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

 * 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)
 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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

 * 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)