09-23-2020 08:47 AM
@CharlesDel wrote:
After checking my conclusion is:
as well 'panel.Close ?' 'as 'app.close ?' event will be triggered if quiting via 'File-> Close',
but it won t react via the 'X' , nor if process is stopped via task manager, nor if LV is closed.
Disallow user to start or use task manager (manage user rights) - 2/4
Don't allow close of LabVIEW - 3/4
Don't allow close of panel ('X') - 4/4
Still, if you pull the plug (cut the power), you need the hardware to react properly. Depending on the situation, the person(s) who made the system might be liable if, for instance, the cleaner gets injured after turning off the system. (S)he won't be the first...
09-23-2020 09:36 AM
@CharlesDel wrote:
After checking my conclusion is:
as well 'panel.Close ?' 'as 'app.close ?' event will be triggered if quiting via 'File-> Close',
but it won t react via the 'X' , nor if process is stopped via task manager, nor if LV is closed.
Solves thus 1 over 4 abort possibilities, not bad, but not a full solution.
Might want to explore either 'wiebe' s suggestion, either the one with the hardware sending periodic messages, but as I said I m not sure how to implement any of both those at this time.
Thanks.
Panel.close fires for me by 'X', how do you manage to not get it? 🙂
09-23-2020 09:42 AM
@Yamaeda wrote:
@CharlesDel wrote:
After checking my conclusion is:
as well 'panel.Close ?' 'as 'app.close ?' event will be triggered if quiting via 'File-> Close',
but it won t react via the 'X' , nor if process is stopped via task manager, nor if LV is closed.
Solves thus 1 over 4 abort possibilities, not bad, but not a full solution.
Might want to explore either 'wiebe' s suggestion, either the one with the hardware sending periodic messages, but as I said I m not sure how to implement any of both those at this time.
Thanks.
Panel.close fires for me by 'X', how do you manage to not get it? 🙂
Probably the 'X' doesn't match the Panel close event's VI? Closing the main won't trigger Panel Close? in floating windows (or vice versa)!
If you don't want users to close panels, disable it... It's bad UI design to enable it, and discard the action if it's used.
Panel Close? even is useful to gracefully handle 'X'. For instance, making 'X' the same as pressing cancel, or menu File>Exit.
09-23-2020 09:49 AM
wiebe@CARYA wrote:
Probably the 'X' doesn't match the Panel close event's VI? Closing the main won't trigger Panel Close? in floating windows (or vice versa)!
If you don't want users to close panels, disable it... It's bad UI design to enable it, and discard the action if it's used.
Panel Close? even is useful to gracefully handle 'X'. For instance, making 'X' the same as pressing cancel, or menu File>Exit.
True, you need to handle the panel event in all VI's that should handle it. But by pressing the X in the upper right corner of a windows i Always get the event, anyhow.
I've often used X as cancel, as it's pretty intuitive. Floating windows is a problem, but if you Close the main windows with X, will it send app.Close to Child windows? (Why do the forum randomly capitalize Words?)
09-23-2020 10:21 AM
@Yamaeda wrote:
windows? (Why does the forum randomly capitalize Words?)
I don't see that happening to me. Are you typing on a phone or a PC?
09-23-2020 10:51 AM
@Yamaeda wrote:
Floating windows is a problem, but if you Close the main windows with X, will it send app.Close to Child windows? (Why do the forum randomly capitalize Words?)
No. At least not in my quick test. Not in general, but if you're only exe window is the main, floating windows might get the event because they are closed because they're the only windows left. Normally this isn't a close, but more like a hide. I don't get a Panel Close? if a floating window hides when for instance another application activates.
09-24-2020 01:28 AM
@RavensFan wrote:
@Yamaeda wrote:
windows? (Why does the forum randomly capitalize Words?)I don't see that happening to me. Are you typing on a phone or a PC?
PC.
Like the Words in this sentence is automagically capitalized, like i'm german. 🙂
09-24-2020 06:56 AM
That is odd. I'd be curious to hear if anyone else says the same thing happens to them. I'd suspect some sort of keyboard problem.
My first thought was phone because I know on mine, if you hit a period, it will automatically turn the next letter into a capital when you type it since it thinks you are starting a new sentence. And that would make sense for "app.Close" having Close capitalized.
09-24-2020 07:35 AM
If I turn my keyboard to Dutch, I get all kinds of shortcuts: "a > ä, 'e > é, ^ > ê, etc. We use é and ë occasionally. But I "quote" text more often...
Sadly, Windows decides to switch keyboard automatically, and makes it near impossible to delete the keyboard. I tried, and ended up with 0, then 4, and each update it's wait and see if you have to start over again. I learned to have ENG and NLD keyboards, and how to switch. This got easier in W10, before W10 it was near impossible. W10 made this hole experience much better.
But if this is your problem, you should see this in the task bar. And you'd have the problem in other applications as well. If not, it must be a forum thing.
09-24-2020 07:52 AM
Hmm, i see i can r-click the word in the reply and choose "don't correct 'word'" so now word should be written as i write it! (yay \o/ )
So it definatly seems like some forum setting/stuff/problem.