LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi's front panel appearance

A subvi's front panel open when it is called. Is there any way to limit mouse movement within subvi's front panel when it is open? My problem is when subvi's front panel is open, mouse clicked on main vi's front panel accidentally, so main vi thought event occur but it didn't get right parameters from subvi because operator didn't finish the input on subvi's front panel.

Any opinion is very welcome.

Thanks.
0 Kudos
Message 1 of 4
(2,600 Views)
Hi
I have a situation where a vi opens, waiting for user input. The key focus is forced into highlighting the area where user input is to be entered. This avoids the mouse from being somewhere else, where an accidental click may trigger an unplanned event to execute, though when a such a vi(eg dialog box) is open, I'm not sure you can click on something else to make that execute.
If it is, say a text control, for text input, you can use its KeyFocus property to get the mouse cursor to jump/move to this control input area. You can experiment to find out what works best for you. I received these suggestions from an NI-TS engineer and modified it to suit my needs. Here's an example vi.

Hope this helps
Khan
0 Kudos
Message 2 of 4
(2,600 Views)
In LV 5.1.1 you can set a option "is dialog" in the properties of the
sub-vi. Then you can't change to the main vi by mouse click, if the
sub-vi is still running.

Ya-hoo wrote:

> A subvi's front panel open when it is called. Is there any way to
> limit mouse movement within subvi's front panel when it is open? My
> problem is when subvi's front panel is open, mouse clicked on main
> vi's front panel accidentally, so main vi thought event occur but it
> didn't get right parameters from subvi because operator didn't finish
> the input on subvi's front panel.
>
> Any opinion is very welcome.
>
> Thanks.
Message 3 of 4
(2,600 Views)
Thanks for everyone's reply.
Hi Nikolai, That solution works well for me. Thanks.
0 Kudos
Message 4 of 4
(2,600 Views)