Wikia

WoWWiki

Widget handlers

Talk0
101,699pages on
this wiki
Widget API

Allowed Widget Script Handlers Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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)
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)
OnSpacePressed (self)
OnTabPressed (self)
OnTextChanged (self)
OnTextSet (self)
OnUpdate (self,elapsed)

Frame Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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 Edit

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)

Around Wikia's network

Random Wiki