LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

window Close Box

Hi all,

I'm trying to figure out a way to monitor the active windows' close box.
Ultimately, I'd like to be able to query the user to confirm the close
command before closing the FP. I know this can be done. I've found VI's
that do this type of thing, but unfortunately the diagrams are password
protected. Any help or guidance would be appreciated.

Thanks

Denis
0 Kudos
Message 1 of 12
(5,784 Views)
I'm searching the same kind of thing...
Did you find something?

FakStory
0 Kudos
Message 2 of 12
(5,597 Views)

Not much point in posting to a 7 year old thread.Smiley Wink

This is pretty simple with the event structure. There's even a couple of shipping examples you should look at. Look at Event Conditional Stop and Event Tracking.

0 Kudos
Message 3 of 12
(5,592 Views)
use an event structure with the Panel Close? event.  Set the disregard as true, and handle it anyway you like.

Message Edited by Stradis on 09-20-2007 10:07 AM


Paul
Message 4 of 12
(5,593 Views)
So dummie I am... Certainly...I was just focusing on an old password protected VI...
Thanks...
By the way, the icon to close VI, close all VI in operation, Right? even if it is not related...
Do you know if Labview have an icon for the close FP without property node...I mean 1 icon instead 4 or 5 icon and property node...?
Thanks
Fak
0 Kudos
Message 5 of 12
(5,585 Views)
Once you wire the method for FP.close, you can delete everything but the method.  So it looks like this.


Nothing else needed... One node, thats it... nice and tidy

Message Edited by Stradis on 09-20-2007 10:42 AM


Paul
Message 6 of 12
(5,582 Views)
great

thanks
0 Kudos
Message 7 of 12
(5,573 Views)
You could also just invert the output of the yes/no message and wire that to the discard terminal. This way, if the user clicks yes, the close will not be discarded and the panel will close normally.
0 Kudos
Message 8 of 12
(5,561 Views)
Where did you get the methode for FP ?

I didn't find it...
0 Kudos
Message 9 of 12
(5,499 Views)
Sorry, I didn't wire the path to my open reference...Sorry...Thanks for the tip...!

Fakstory
0 Kudos
Message 10 of 12
(5,496 Views)