View Single Post
08-19-16, 07:54 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Probably:

Code:
local function onEnter(frame)
    SetCursor("ITEM_CURSOR")
end

local function hook(frame)
    frame:HookScript("OnEnter", onEnter)
end

local GridFrame = Grid:GetModule("GridFrame")
-- Catch any frames that have already been created:
GridFrame:WithAllFrames(hook)
-- and any that get created in the future:
hooksecurefunc(GridFrame, "InitializeFrame", hook)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote