Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69758

In need of advice

$
0
0

Hello,

 

I have some error handling functions to be used on my projects.

specifically I spawn a error dialog to the user (using VI server) to both show the error and give the user the option to close the top most-level VI (is there are repeating errors (say in a loop) using a file>shut down menu option.

 

so I can drag the spawner and place it on any top level VI and have my error hangling.

 

Now, this functions I want to be able to use them on any project (universal) per say and since my style is to always include a panel closed? event which i ignore and do house cleaning before terminate my main program I can standarize this.

 

here are some links i visited while attempting to create panel close? event dynamically

 

http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/vi_pnl_closing/

http://digital.ni.com/public.nsf/allkb/81E9C1441900FFCE8625748F0055DBB0

this variant closes the vi but does not generate the efect of cliking on the "X button" the next link mentiones that "WM_CLose" it should behave like pressing the "X button". I also try "WM_Quit" but no joy.

http://stackoverflow.com/questions/3155782/what-is-the-difference-between-wm-quit-wm-close-and-wm-destroy-in-a-windows-pr

method FP-CLose failed

function "Stop" acts like an abort

 

I though about moving the mouse (based on the size of the top most level windows FP) to where the "X button" is but iam hoping for a more elegant approach.

 

any help will be greatly appreaciataed.

 

 


Viewing all articles
Browse latest Browse all 69758

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>