Bug Report T1267760
Visible to All Users

Ribbon button captions are incorrectly scaled if the form's ParentFont is set to True

created 4 months ago (modified 4 days ago)

Steps to reproduce:

  1. Set the main monitor's scale factor to 150% and the secondary monitor's scale factor to 100%
  2. Run the attached project on the main monitor

Expected results:

Button captions are scaled according to the current monitor's DPI:

Current results:

Button captions are not scaled:

Additional information:

IDEs prior to RAD Studio 12 Athens may not handle ParentFont correctly for all cases, so a possible fix will not be applicable for these IDEs.

Workaround

Replace the TdxCustomRibbonForm.ScaleForPPI procedure implementation (dxRibbonForm.pas) with the following code:

Delphi
procedure TdxCustomRibbonForm.ScaleForPPI(ATargetDPI: Integer; AWindowRect: PRect = nil); begin if ParentFont or not (csLoading in ComponentState) then inherited; end;

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.