View Single Post
03-02-08, 05:36 PM   #3
DOAshn
A Defias Bandit
Join Date: Mar 2008
Posts: 3
Originally Posted by Slakah View Post
"OnMouseUp" and "OnMouseDown" arn't events their handlers and should be used as follows.


Code:
local function onmousedownfunc(self, button)
     --do stuff here
end
<frame>:SetScript("OnMouseDown", onmousedownfunc)
K, i tested that like this.

Code:
local function Benque_OnMouseDown(self, button)
     self:StartMoving();
     message("test");
end

...
frame:SetScript("OnMouseDown", Benque_OnMouseDown);
But nothing happens, not even the message is displayed.
gah!
  Reply With Quote