02-23-2012 08:30 AM
I'm attempting to fade in/out a front panel pop-up window at a configurable position on the monitor screen. However, if I have a negative value for the Y Position and I programmatically change the Front Panel Transparency, the Front Panel jumps to a positive Y Position location.
I've attached a simple VI which demonstrates this anomaly. Note that after the fade in, I configure the front panel position again to a negative Y Position, which does work, but as soon as the Transparency control is manipulated again, it jumps the Front Panel Y Position to a positive value again.
02-23-2012 09:29 AM
There are certain things which cause the window to be moved into the display if it's outside the display. This is supposed to help you in cases where you had a second monitor and disconnected it or accidentally moved the window off screen and you can't get it back. I'm guessing that setting the transparency is one of those things. I'm also guessing that this is done by the OS, not by LV. Your demo VI is displayed fine if I configure Windows to place my secondary screen above my main screen.
If you want not to show the window, just set the FP state to hidden.
02-23-2012 09:45 AM
I can configure the Y Position for 0 and the X Position for -100 and it does move it off the screen for a single monitor display. I'm assuming that since the windows titlebar is on the top, that Windows OS doesn't want that to be unaccessable and force corrects when the transparency is changed.
02-28-2012 10:56 AM
No. It's not Window OS problem. Works just fine when set transparent with Windows API.
Tested with LabVIEW 2010 on XP.
So it's a LabVIEW problem. To get around this problem, try this:
1. disable redraw front panel
2. set transparent
3. set window position
4. force redraw