View Single Post
01-24-10, 08:58 PM   #167
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
Originally Posted by Shestak View Post
All is well, everything works, and the panel and the button. DBM run. But mousover works only on an area of the panel, where there is no text. And if you move the cursor to an area where there is text, the panel does not appear.
This is happening because the cursor is being intercepted by the DBM button, so the parent "thinks" that the cursor is leaving it, thus triggering the OnLeave function.

You can get around this pretty easily by checking if the cursor is not hovering over a child panel:
Code:
OnLeave = function(self)
    if GetMouseFocus():GetParent() ~= self then self:SetAlpha(0) end
end,

Last edited by Katae : 01-24-10 at 09:10 PM.
  Reply With Quote