11-20-2014 04:49 PM
Hello,
Im working on a program to show 3d objects in a scene window, and then control the position with keyboard events. But when the scene window is on the top instead of the front panel, the vi doesn't response anymore to key down event.
In the attachment is an example. I need to make sure the front panel is on the top so that the left or right key controls the rotation of the cubic around the sphere. If the scene window is on the top, it won't work. Anybody help me? Thanks.
11-21-2014 08:45 AM
This is expected behavior. The key down event is bound to <This VI>. If the VI doesn't have the focus, the internal LV event handling mechanism doesn't pass this event to the VI to handle.
As a workaround, you can set the "FP IsForemost" property to TRUE in order to get the focus on the VI before the event structure. Use the error cluster to make sure that this property node executes before the event structure (data flow).
Norbert