this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
this:SetChecked("0");
TradesBar_OnClick(this);
TradesBar_SetTooltip(this);
GameTooltip:Hide();
if (arg1 == "RightButton") then
if (IsControlKeyDown()) then
TradesBar:StartMoving();
end
end
if (arg1 == "RightButton") then
TradesBar:StopMovingOrSizing();
TradesBarGetPoint();
end
TradesBar_OnLoad();
TradesBar_OnEvent();
if (arg1 == "RightButton") then
if (IsControlKeyDown()) then
this:StartMoving();
end
end
if (arg1 == "RightButton") then
this:StopMovingOrSizing();
end