08-02-2023 09:17 AM
Ok,
thank you George Zou.
08-04-2023 04:12 AM
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
08-07-2023 09:34 PM
It seems that you can not change cursor after disable the window.
Maybe you should use other way to notify user.
08-08-2023 03:13 AM
Ok, thank you.
08-08-2023 08:31 AM
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.
08-08-2023 11:09 AM
Great! I'll wait for your further details.
08-08-2023 10:27 PM
Method 1: dump all mouse/cursor events to other LabVIEW window to prevent user resize FP.
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
08-08-2023 11:00 PM
Method 2: Confine cursor in a rectangle so that it can not reach the window edge.
08-09-2023 05:10 AM
Windows API are very interesting.
Thank you Mr. Zou!
08-09-2023 09:35 AM
Just in case you can help in this:
https://forums.ni.com/t5/LabVIEW/Sliding-panel-covering-splitters/td-p/4321848