Bug Report T537348
Visible to All Users

Toolbars displaying large size icons from a linked image list, whose SourceDPI property value is greater than 96, are oversized at high DPI settings (more than 96)

created 8 years ago (modified 8 years ago)

Hi!

In my opinion there is a bug when using LargeIcons := True on a bar manager with assigning the correct DPI related image list to bar manager: on a HighDPI System (192 DPI) the bar item are much too large (see attached screenshots on attachment: it has a very large empty area around the images)

To reproduce, run application from attached sample on a 192 DPI system and toggle the 'Large' checkbox.

Here's the main code of check box:

Delphi
if Screen.PixelsPerInch >= 144 then begin dxBarManager1.ImageOptions.Images := cxImageList3; dxBarManager1.ImageOptions.LargeImages := cxImageList4; end else begin dxBarManager1.ImageOptions.Images := cxImageList1; dxBarManager1.ImageOptions.LargeImages := cxImageList2; end; dxBarManager1.ImageOptions.LargeIcons := not dxBarManager1.ImageOptions.LargeIcons;

the TcxImageLists cxImageList1 (16x16) and cxImageList2 (32x32) have a SourceDPI set to 96 and cxIMageList3 (32x32) and cxImageList4 (64x64) have set SourceDPI to 192. So they will not scale itself.

Any idea how to fix this?

Comments (2)
DevExpress Support Team 8 years ago

    Thanks, Oliver. I have reproduced this behavior and forwarded this ticket to our developers for research.

      Thank you very much for creating a hotfix! Now everything is working fine with 2017.1 :-)

      Answers approved by DevExpress Support

      created 8 years ago (modified 8 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.

        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.