05-09-2009 09:23 AM
Hi
Many questions on popup dialog box but could not find the right answer.
1. A 'display message to user' can be connected successfully but after it pops up theres no way to get rid of it but to cntl-alt-del, then offcourse restart. Same goes for many tuts & examples. No way to cancel this box.
2. If a OK or cancel button is used on it then it must dissappear.
3. If a mouse is not used then it must pop up for a limited time like 500ms.
4. Pop it to one corner out the way of the controlls.
Regards
05-09-2009 11:21 AM
05-09-2009 11:21 AM
If I knew what dialog you were referring to, I might be better able to help.
As it is, I'm guessing: One Btn Dialog? Two Btn DIalog? Prompt User?
I have no idea.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
05-09-2009 01:31 PM
You say you have many questions, yet you did not actually ask any questions at all...
...If one of the standard dialog boxes doesn't fit your needs, maybe you need to make a VI that looks like a dialog box, and is programmed to act like you want?
05-09-2009 02:55 PM
I wanted to propose you to use the 3-button dialog, and modify the boundaries and add a timeout.
i just had a look in there, and its pretty messy. (nou nou nou NI!). but you could still find your way, for changing the position on the screen and to put a timeout on the event structure.
you wont be able to use ctrl-alt-del from your calling vi, but some other keys, like ctrl-shift F1. you can set it for any control, via the "properties" on the front panel, right click on the control. then go to tab "key navigation".
05-10-2009 09:45 AM
If there we that many that didn't understand what I wrote then, sorry for just being an idiot.
I 'll try to ask again.
I used a 'Display Message to User ' popup box on an application. It poped up at the correct time but I then could not get rid of it.
i understand the statement would have been true for it to poped up. By acknowledgeing it by pressing 'OK' the statement would still be true therefore the popup would remain on the screen.
1. How to get rid of the popup dialog box?
I found that I have to shut down the labview application with CNTL-ALT-DEL & use windows Task manager to shut the application.
Regards
05-10-2009 09:52 AM
I think calling yourself an idiot is a bit harsh.
I know nobody here was implying that - we just didn't understand what you were asking.
OK. You're using the Display Message to User, but apparently you are not able to "get rid of it". I don't understand what you mean by "the statement would still be true". Are you referring to some code?
I really think the best way to help you is for you to upload your VI so we can see what you're doing.
05-10-2009 12:46 PM
could it be that the popup was in some loop, that kept looping, therefore you got an infinite amount of pop ups?
or, more likely, a user event structure that lock sreen until the actions in the event are finished (and one of the actions is the pop up)?
upload the vi, we want to see.
05-10-2009 03:33 PM
noneqwerty wrote:1. How to get rid of the popup dialog box?
I found that I have to shut down the labview application with CNTL-ALT-DEL & use windows Task manager to shut the application.
Before you run the program, make sure that all front panels of your popup subVIs are closed.
The panel of a popup dialog is set to "Show front panel when called AND close afterwards if originally closed", meaning if it was open to begin with, it will not close but remain modal, preventing you from intereaction with e.g. the main VI.
This can be a problem if you e.g. hide the close button of the subVI, etc.
If this is not the problem, please attach some code. Other possibilities have already been mentioned, e.g. if you would keep calling the same popup in a loop.
05-10-2009 07:53 PM
Here's the code.
Notice once you run it theres no way to stop the 'run'
Thanks