HTML Leave Cell Event?

My application generates popups when the cursor is over certain html
cells. It uses the EVT_HTML_CELL_HOVER event. However, I cannot find a
way to determine when the cursor leaves a cell so the popup can be
destroyed. When the cursor goes to another cell the code catches the
new hover event and destroyes any existing popup. But sometimes an
html page has a lot of empty space with no cells and the popup stays
up.

What am I missing? There is an event when the cursor leaves a cell
because the cursor changes from a bar to an arrow, but I can't find
how to access it. Any ideas?

Thanks,
Tim

My guess is that there isn't an explicit even being generated for it, but the HtmlWindow is probably just checking in the EVT_MOTION or IDLE events if the cursor position is over a cell or not and then setting the cursor appropriately.

···

On 5/26/11 9:37 AM, tsmorton wrote:

My application generates popups when the cursor is over certain html
cells. It uses the EVT_HTML_CELL_HOVER event. However, I cannot find a
way to determine when the cursor leaves a cell so the popup can be
destroyed. When the cursor goes to another cell the code catches the
new hover event and destroyes any existing popup. But sometimes an
html page has a lot of empty space with no cells and the popup stays
up.

What am I missing? There is an event when the cursor leaves a cell
because the cursor changes from a bar to an arrow, but I can't find
how to access it. Any ideas?

--
Robin Dunn
Software Craftsman

My guess is that there isn't an explicit even being generated for it,
but the HtmlWindow is probably just checking in the EVT_MOTION or IDLE
events if the cursor position is over a cell or not and then setting the
cursor appropriately.

Thanks.

Is there a way one can check to see if a cursor is over a cell? I've
tried cell.GetPosX, etc. but it is only the position within the parent
cell. I can't find a way to convert it to window position.

Tim

Try something like this:

  containerCell = htmlWin.GetInternalRepresentation()
  cell = containerCell.FindCellByPos(pos.x, pos.y)

You might have to adjust the position do be relative to the containerCell's origin.

···

On 5/27/11 7:08 PM, tsmorton wrote:

My guess is that there isn't an explicit even being generated for it,
but the HtmlWindow is probably just checking in the EVT_MOTION or IDLE
events if the cursor position is over a cell or not and then setting the
cursor appropriately.

Thanks.

Is there a way one can check to see if a cursor is over a cell? I've
tried cell.GetPosX, etc. but it is only the position within the parent
cell. I can't find a way to convert it to window position.

--
Robin Dunn
Software Craftsman