LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Related to the message dialog box

Dear,
 
I would like to ask questions on the message box.
I got to know the limitation of the message box in my program.
Would you please guide me how to realize my hope?
 
1. I made a three button dialog message box in LV 8.
I got to know the shortkey option in the box vi.
But I have to use "Spacebar" as the shortkey of the Okay button to keep good compatibility to other applications.
(The manual explained there is a restriction in selecting the shortcut.)
Is there any other method to use SPACEBAR?
 
2. Although I use any possible shortkey in message box,
I have to type twice the key. First typing was for focusing the button, and then press the button in the next typing.
Is it normal operation?
 
3. As you may know well, the message box is for waiting user's opinion keeping halt state of the routine.
I would like to add some routine to check the condition and then the message box is disappeared and run the vi again automatically.
(sometime user input is useful, so the message box should be shown).
How to realize the message box under calculation inside routine?
 

 

메시지가 04-06-2007 08:21 PM에 labmaster에 의해 편집되었음

0 Kudos
Message 1 of 7
(2,956 Views)
You can easily make your own dialog box and use the event structure to get a key down event and if it's the spacebar, stop. The timeout event can also be use to stop the VI after any amout of time that you choose.
0 Kudos
Message 2 of 7
(2,929 Views)
Dear Dennis Knutson,
 
Thanks you for the comments.
I was confused how to make the dialog box inside my event structure.
(Using the one box, I will use the event structure twice.)
 
However, I want to ask again how to check if Spacebar key is pressed or not in your example?
I am very wondering if some key(such as spacebar) should be different to other key (reserved in focus property) in button property.
Is the Spacebar reserved in LV?
 
Lee
0 Kudos
Message 3 of 7
(2,915 Views)
Okay, I had a mistake not to see your code for my purpose.
It will be very helpful to me.
Thank you.
0 Kudos
Message 4 of 7
(2,911 Views)
Dear Dennis Knutson,
 
Would you please let me know how to find the scancode for various Keyboard inputs?
I can't find out the scancode TABLE in the manual.
 
Lee
0 Kudos
Message 5 of 7
(2,908 Views)
You can simply put an indicator on the scan code output in the key down event. That's what I did. You can also Google scan codes. I got nearly 2 million results and I suspect at least one of them wil have a table you can use.
0 Kudos
Message 6 of 7
(2,903 Views)
Thanks.
 
I know you have helped me in many times.~~!!!
0 Kudos
Message 7 of 7
(2,885 Views)