LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse cursor appearance outside a modal window

In my application, I need to open a sub-VI that displays its front panel as a modal window and to change the cursor to an hourglass from that sub-VI for itself and all calling VI's.
As shown in the example attached, this works perfectly if the sub-VI frontpanel is displayed as a normal or floating window.
However, when it is set to a modal window, the mouse cursor resets to the normal pointer appearance as soon as the cursor is moved outside the modal window.
Why is it so and is there any solution to overcome that ?
0 Kudos
Message 1 of 4
(3,035 Views)
Hi Yvan!

In LV 7, under VI Properties >> Window Appearance, you have the option to set the Window Behavior to Floating, which will keep the window on top of all other non-floating windows.

Matt P.
National Instruments
0 Kudos
Message 2 of 4
(3,035 Views)
Matt,

Thanks for your answer.
Is it however possible to change the appearance of a floating window such that it looks like the modal ones (i.e. like the dialog boxes where the background is raised and not lowered) ?

Yvan
0 Kudos
Message 3 of 4
(3,035 Views)
Yvan,

I don't know of a way change the appearance of the window in such a way using LabVIEW. You might be able to call a function in the Windows API to change the appearance of the window.

Matt
0 Kudos
Message 4 of 4
(3,035 Views)