Bug Report T944708
Visible to All Users

DocumentManager - Width of Tabs is incorrect in the latest hotfix of v20.1.8

created 4 years ago

Hi Guys,

there is currently another high priority issue with 20.1.8.20304 which also exists in 20.2.3.

simply use XAF maindemo and change program.cs to remove LoadApplicationSettings.

public static void Main(string[] arguments) {
//WindowsFormsSettings.LoadApplicationSettings();

next add the attached manifest file and start the application.

now when you change the DPI settings - you see the issue and in 20.1.8.304 also an exception is happening - which does not happen in 20.2.3 - but the TAB issue exists in both builds!

https://www.screencast.com/t/bQNmQtWij

Comments (2)
DevExpress Support Team 4 years ago

    Thank you for the video and file, Martin.
    I forwarded this ticket to our developers, and they will research the exception.

    Let me give you some advice regarding your current approach:

    1. I see in the app.manifest file that you enabled the PerMonitor mode (not the PerMonitorV2 mode). Please note that PerMonitor awareness is very limited. Microsoft recommends that you always use Per-Monitor V2. See these articles for details:
      High DPI Desktop Application Development on Windows
      Graphics Performance and High DPI
    2. Use the Project Settings Page (app.config) or call WindowsFormsSettings.SetPerMonitorDpiAware / WindowsFormsSettings.SetDPIAware to enable the required DPI mode. The use of the application manifest file may lead to some issues.
    3. Change DPI settings in your system, log out, and then log in again. As our tests show, some System variables aren't updated completely until you log out and log in. As a result, applications may be scaled incorrectly.

    So, when we fix this issue, I recommend that you enable PerMonitorV2 mode in your application using either the Project Settings Page or SetPerMonitorDpiAware and log out and log in after you change DPI settings in your system.
    This will help you avoid possible DPI-related issues.

    M M
    Martin Praxmarer - DevExpress MVP 4 years ago

      Thx Stas - migrating the app.manifest is on our roadmap. changing the DPI settings was simply a way to show the issue with the tab lenght - our users having the issue without changing the DPI settings at runtime.

      Answers approved by DevExpress Support

      created 4 years ago

      We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

      Note: Hotfixes may be unavailable for betas/updates set for release within a week.

        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.