Originally Posted by Slakah
"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!