Mouse in event for tables

Hi,

I am trying to use a WindowHook function to detect a mouse-in event for a table. However, such an event code does not exist. Does anyone have a good workaround to enable a mouse-in event for a table?

Instead of a workaround, convert the table display into a Listbox. Basically just convert the Edit command into a Listbox within a Panel. If you only want the table displayed simply fill the panel with the listbox completely using guides. This is not difficult at all, and a Listbox has a ton of features you might want to have in addition to mouse detection.

Depending on what you are trying to do, chozo's suggestion to use a listbox in a panel instead of a table might be the right approach and probably is. I have attached an experiment, based on the "Creating a Contextual Menu" help topic, that shows how to create a listbox hook.

That said, I am attaching an Igor Pro 9 experiment that shows how to receive mouse down and mouse up events in a table window and also in a table subwindow.

Table Window Hook.pxp (5.89 KB) ListBox Demo.pxp (5.26 KB)