Re: Trap MouseHover in Win32Lib

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

I would like to trap a MouseHover event, or otherwise figure out when the mouse cursor has stopped over a EuGrid control column so I can show a ToolTip for the currently hovered-over cell. There are many mouse events, but "hover" doesn't seem to be one of them.

Maybe there's an easier/better way to do this. Any ideas?

When you set a tooltip hint, you can supply a routine_id instead of some text. Then when Windows goes to display the tooltip, it calls your routine and displays whatever text your routine returns.

This means that you can write a routine that gets the mouse location, calculates which cell that's hovering over and return the text appropriate for that cell. Your routine will receive two parameters; the ID that invoked the tooltip and the maximum length for the tip text.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu