LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with file dialog

Solved!
Go to solution

Hello erveryone,

 

My problem is quite easy...I try to use the File dialog vi from NI and it's work correctly, but when I select a file using the double-clic, the second clic is detected as a clic on my panel...

 

In exemple, if the file I select in file dialog pop-up is justa button on my panel (under the pop-up), the action linked to this button is perfromed...

 

I tried to disable my front panel when using the dialog box, but it doesn't change nothing.

 

Did someone have the same problem? Did someone find a solution to this issue?

 

Thanks for helping,

 

Fabrice

0 Kudos
Message 1 of 10
(3,534 Views)

In Labview 8.5 and 8.6 works fine.

Which version do you have?

 

Are you sure it is not a problem with your mouse ?

0 Kudos
Message 2 of 10
(3,523 Views)
I don't see the problem in 8.2 either. Are you sure it's not your code?
0 Kudos
Message 3 of 10
(3,520 Views)

Hello, and thanks for your first answers,

 

I dont think it comes from my code... I just use the file dialog vi from labview!!!

 

The only speciality is that the controls (which could be activated) are in a cluster... Do you think it changes something?

 

About the version, I'm using the 8.6 version, but the issue was the same with 8.5...

 

I don't see why the mouse could be an issue? auto-activated third click? Strange...

 

Fabrice

0 Kudos
Message 4 of 10
(3,483 Views)

Hi again everyone,

 

Here is an example of my issue.

 

The big boolean just change the state of the LED on each click.

 

If you browse with the path control below and select a file (by double-click) in the file dialog box, the state of the LED changes... It shouldn't have to!!

 

Any idea?


Fabrice

0 Kudos
Message 5 of 10
(3,478 Views)
better with attached file!!!
0 Kudos
Message 6 of 10
(3,477 Views)
Solution
Accepted by topic author Scribeus

Hmm... What's wrong here? When file in dialog selected with double click, then dialog disappeared by mouse down, so, your control under dialog receives mouse up:

Double click: Mouse Down->Mouse Up->Mouse Down (here dialog disappeared)->Mouse Up (you have receive it). Nothing wrong. May be inconvenient in some cases.

 

Andrey.

 

0 Kudos
Message 7 of 10
(3,475 Views)

Thanks Andrey...

 

I didn't thought the file dialog would be closedon mouse-down!!!

 

I'll try changing the event on my controls,

 

Best regards

 

Fabrice

0 Kudos
Message 8 of 10
(3,471 Views)

But even then, the double-click event on a file thro' the Windows File Dialog should be over by the time the File Dialog gets disappeared.

I think he is right...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 10
(3,450 Views)

Hi again,

 

I didn't understand exactly what you meant parthabe...sorry!

 

Well, this post was just to give you a backup. I changed the event to "value changed" and it works perfectly.

 

So the issue is solved,

 

Thanks to all

0 Kudos
Message 10 of 10
(3,447 Views)