LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I detect whether a LabVIEW Dialog box (primitive) is active?

I'm trying to detect when native LabVIEW dialog boxes are active on a local PC from another background LabVIEW VI. When I say native LabVIEW dialog box I mean either the "One (or Two) Button Dialog" primitives on the block diagram functions pallet. Does anyone know a way to do this (ActiveX or some kind of query to the OS maybe)? I noticed that it doesn't show up in the profile window, that might provide a clue.
0 Kudos
Message 1 of 2
(2,542 Views)
> I'm trying to detect when native LabVIEW dialog boxes are active on a
> local PC from another background LabVIEW VI. When I say native
> LabVIEW dialog box I mean either the "One (or Two) Button Dialog"
> primitives on the block diagram functions pallet. Does anyone know a
> way to do this (ActiveX or some kind of query to the OS maybe)? I
> noticed that it doesn't show up in the profile window, that might
> provide a clue.

This won't detect specifically if a one button or two button dialog is
open, but you can use SDK functions to walk the windows and determine if
a modal window is open. I believe there are also SDK functions for
determining which window is frontmost, and you can get its title, its
style bits, etc.

The place to start is on developer
zone searching for lvwutil32.zip.
You might also want to visit the Microsoft site and read a bit on the
SDK functions for accessing children, siblings, and parents.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,542 Views)