LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Key focus after a popup message

Hi everyone,

On my main VI, I ve got a cluster of strings and I try to set focus key on one of those strings. It works fine if I don't  have any popup message before trying to set a key focus.

1/ Run the main VI.
2/ Click on button "Start STB Identification"

If "Boite de dialogue" boolean is set to false, focus key is set to the fourth string.
If "Boite de dialogue" boolean is set to true, focus key doesn't appear. Sometines key focus is correctly set.

LV 8.5
Thanks in advance for your answer.


Message Edité par Zaboulou le 03-19-2008 02:36 PM
0 Kudos
Message 1 of 8
(3,703 Views)

Hi Zaboulou,

one vi is missing and for your information this is the LabView forum: http://forums.ni.com/ni/board?board.id=170 Smiley Happy

Mike



Message Edited by MikeS81 on 03-19-2008 02:42 PM
0 Kudos
Message 2 of 8
(3,699 Views)
Hi Mike,

Sorry for missing VIs.
I very well know NI forum. No worries I spend few hours on it to try to fix it. You coub do a better ressearch than me.

Regards,
Zaboulou
0 Kudos
Message 3 of 8
(3,694 Views)

Hi Zaboulou,

i can´t see your described behavior.

Mike

0 Kudos
Message 4 of 8
(3,688 Views)
Hi Mike,

On my computer, it works one a 5 time if "Boite de dialogue" is switched on and I do several "Start STB Identification".
My OS is Win XP. What about you ?
I m looking for why it works on your computer, not on mine.

Regards,
Zaboulou


Message Edité par Zaboulou le 03-19-2008 03:41 PM
0 Kudos
Message 5 of 8
(3,685 Views)


Zaboulou wrote:
I very well know NI forum.
So why did you post in the feedback forum instead of the LabVIEW forum? The feedback forum is for issues dealing with the forum web page, not for LabVIEW code! 🙂
 
I cannot reproduce your problem either. Maybe there is something special on your setup.
 
Your code has a quite few other problems, for example the main VI uses all CPU to spin the loop doing nothing. A wait statement is definitely needed. Same in the inner loop where you check for loss of key focus.
0 Kudos
Message 6 of 8
(3,675 Views)
Maybe there is special with my computer because the behaviour is ok on other computers.
This code is sthe simplify code : I cut many things !!


0 Kudos
Message 7 of 8
(3,672 Views)
I find a workaround : insert a wait of 100ms after dialog box.
Message 8 of 8
(3,670 Views)