NI Home > Community > NI Discussion Forums
Reply
Member
AllanS
Posts: 197
0 Kudos

Programmatically Raising a Mousedown or key down event

How can I raise an event pretaining to a listbox such as mousedown or keydown in LabVIEW 7? I read that something like this is possible but I am struggling to find an example
Member eh
Member
eh
Posts: 106
0 Kudos

Re: Programmatically Raising a Mousedown or key down event

Here is an example that executes an event whenever an item is clicked on with a mouse.
Member
AllanS
Posts: 197
0 Kudos

Re: Programmatically Raising a Mousedown or key down event

I mean programmatically raise this event. I know that if I actually click on this list box that this event will be raised, but lets say I want the event to be raised first thing when the front panel is ran? Or at any other time I want? How would this be done?
Member eh
Member
eh
Posts: 106
0 Kudos

Re: Programmatically Raising a Mousedown or key down event

Try this one. When you click the Activate listbox event button, it programmatically generates an event for the listbox.
Member
AllanS
Posts: 197
0 Kudos

Re: Programmatically Raising a Mousedown or key down event

This still does not generate an event. It changes the value of the listbox but does not do it using the code inside the event case structure.
Member eh
Member
eh
Posts: 106
0 Kudos

Re: Programmatically Raising a Mousedown or key down event

You are right. It does not generate a mouse event, just a value changed event. The only way this example would work is to change the listbox event to value changed.