LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse events don't work on a button from a panel ran in a DLL

Solved!
Go to solution

Daniel, that was my point. You must call QuitUserInterface from the same thread that called RunUserInterface. Therefore, you should not call QuitUserInterface directly.

 

Luis

0 Kudos
Message 11 of 14
(1,130 Views)

Thanks Luis for making it clear.

I'll use PostDeferredCallToThread(), but either way I have my problem solved.

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 12 of 14
(1,119 Views)

Daniel,

 

Apologies for the misleading post.

 

I forgot the point that your panel is loaded by a thread other then DLL's main thread.

So Luis is -of course- correct in his suggestion of using PostDeferredCallToThread.

 

S. Eren BALCI
IMESTEK
0 Kudos
Message 13 of 14
(1,116 Views)

No worries.

Everything is working well and PostDeferredCallToThread() will be my next upgrade.

I appreciate everyones effort.

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 14 of 14
(1,114 Views)