frame:HookScript("OnShow",function(self) -- Do something end);
hooksecurefunc(frame, "Show", function(self) -- Do something end);