Mouse in event for tables
maru
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.
October 15, 2023 at 05:30 am - Permalink
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.
October 15, 2023 at 09:40 am - Permalink
I never came up with the Listbox. Thank you so much.
October 15, 2023 at 05:23 pm - Permalink