self:RegisterForDrag("LeftButton");
MacroButton_OnClick(self, button, down);
PickupMacro(MacroFrame.macroBase + self:GetID());
MacroPopupButton_OnClick(self, button, down);
self:SetChecked(nil);
PickupMacro(MacroFrame.selectedMacro);
MacroFrame.textChanged = 1;
if ( MacroPopupFrame.mode == "new" ) then
MacroPopupFrame:Hide();
end
MacroFrameCharLimitText:SetFormattedText(MACROFRAME_CHAR_LIMIT, MacroFrameText:GetNumLetters());
ScrollingEdit_OnTextChanged(self, self:GetParent());
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
MacroPopupOkayButton_Update();
MacroFrameSelectedMacroName:SetText(self:GetText());
if ( MacroPopupOkayButton:IsEnabled() ~= 0 ) then
MacroPopupOkayButton_OnClick(MacroPopupOkayButton);
end
FauxScrollFrame_OnVerticalScroll(self, offset, MACRO_ICON_ROW_HEIGHT, MacroPopupFrame_Update);