Hi, thanks for your reply.
But I got an error even if I do a trivial copy paste of your relevant part of code:
Lua Code:
local function framehider(self)
self:Hide();
end
... other code ...
TimeManagerClockButton:HookScript("OnShow", framehider);
TimeManagerClockButton:Hide();
But I always finish to get the error:
Lua Code:
attempt to index global 'TimeManagerClockButton' (a nil value)
even if it works nicely if I load your addon ... so I surely miss something important here
Thanks so much for patience and help.