Log in

View Full Version : [Delphi7] Odd behaviour with multiple monitors


JonE
31st October 2011, 10:32
I have a Delphi7 app that can launch a form to show video full screen, either on the primary monitor or the secondary monitor.

If the app itself is running on the primary monitor then all is well, and both the main app form and the video form respect my FormStyle settings (fsNormal or fsStayOnTop) i.e. when previewing full screen on the primary monitor whilst app is on primary monitor then the video hides the app window (as it should).

However, if the app is in the secondary monitor then
1) The video form is completely invisible when on the primary monitor.
2) The video form is _behind_ the app when in the secondary monitor i.e. FormStyle settings are ignored.

Now, I can bodge my way around (2), but (1) has me baffled.

Delphi isn't my normal programming language, is this behaviour a known Delphi bug ? It happens in both XP and Vista so I'm guessing its not an OS issue.

TTFN,
Jon

PS: The video is being painted manually - no fancy GDI+, Open GL or DirectX.