Bug Report T326273
Visible to All Users

Alert windows don't pop up on the monitor displaying an application (in systems with multiple monitors)

created 9 years ago

Hello,

On a multi-monitor Windows Alert are always shown on default (primary) monitor even if it owner form is on a secondary monitor.

How to show Alert of the same monitor of it owner form ?

How to reproduce : In a multi-monitor Windows launch your demo  "AlertWindowDemoMain" move main form on a second monitor. Alter are always displayed on the primary monitor.

Problem it is that more and more end user have multi-monitor…

Best regards,
Fabrice

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 9 years ago

    Hello Fabrice,

    This functionality is not supported by default. However, I understand your idea and we will consider the possibility to change our current behavior for working with multi-monitor Windows in future versions of our controls.
    For now, you can try to change the WorkArea function in the dxAlertWindow unit to the following:

    Delphi
    function WorkArea: TRect; begin Result := Screen.MonitorFromWindow(Application.MainForm.Handle).WorkareaRect; end;

    Note that if a project form is placed to the other monitor, new Alter Windows will be created there, but taking into account already existing Alert Windows on the first monitor (i.e. upper than existing ones).

      Comments (2)

        Hi Mikhail,
        It's work fine.
        Like always thank you for your quick and efficient solution.
        But I think that add a new property in dxAlertWindow to do that could be fine for a future evolution ?
        Best regards,
        Fabrice

        DevExpress Support Team 9 years ago

          Thank you for the idea. We will consider it.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.