ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lock panel resize programmatically, cause window to flick

Solved!
Go to solution

Ok,

thank you George Zou.

0 Kudos
Message 21 of 30
(1,502 Views)

Dear Mr. Zou,

I am trying your demo and I saw it freezes panel window and mouse.

 

Is there any possibility to change the mouse pointer during the freezing phase?

 

I am trying with LV mouse busy or set cursor.vi but they don't work.

Probably it's necessary a low level trick.

 

Best regards 

0 Kudos
Message 22 of 30
(1,453 Views)

It seems that you can not change cursor after disable the window.

 

Maybe you should use other way to notify user.

 

George Zou
0 Kudos
Message 23 of 30
(1,430 Views)

Ok, thank you.

0 Kudos
Message 24 of 30
(1,419 Views)

It seems that disable window is not the best way.

There are a few other methods to prevent user resize the FP.

I will create some VIs after work.

 

George Zou
0 Kudos
Message 25 of 30
(1,398 Views)

Great! I'll wait for your further details.

 

 

0 Kudos
Message 26 of 30
(1,393 Views)

Method 1: dump all mouse/cursor events to other LabVIEW window to prevent user resize FP.image.png

Download the missing subVI here:

https://forums.ni.com/t5/Example-Code/Windows-API-Function-Utilities-32-bit-for-LabVIEW/ta-p/3996462

 

P.S. my colleague and I presented "Leveraging The Windows API To Extend GUI Capabilities" at NI Week 2018.  For those interested in Window API, the video is available on YouTube:

https://www.youtube.com/watch?v=-CqWwjDad1M&list=PLQQqHDdPxRKnkAElWt_hNcRJEUPdezmfr&index=4

 

 

George Zou
Message 27 of 30
(1,384 Views)

Method 2: Confine cursor in a rectangle so that it can not reach the window edge.

 

image.png

 

 

George Zou
Message 28 of 30
(1,379 Views)

Windows API are very interesting.

Thank you Mr. Zou!

0 Kudos
Message 29 of 30
(1,366 Views)
0 Kudos
Message 30 of 30
(1,345 Views)