Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Drop Down Button Width Under High DPI
posted

We are trying to enable our application for high-DPI displays, and have run into a problem.

When using an AppStylist style, the width of the drop down button (and the associated image) are different in UltraTextEditor with a DropDownEditorButton than they are in the UltraCombo and UltraComboEditor.  Even at 96 DPI, the widths are different, but not by much so not very noticeable.  Under high DPI settings, the difference is much bigger and definitely noticeable.

The attached sample demonstrates the problem using the stock Office2007Blue.isl style sheet.

How can we correct this so that all the drop-down buttons appear the same width, and their drop-down arrow image appears the same size?

DropDownButtonWidthUnderHighDPI.zip
Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello Scott,

    Thank you for the sample. The width of the builtin DropDown button of the UltraCombo/UltraComboEditor is determined based on the resolved DisplayStyle of the control. When the DisplayStyle resolves to Standard, the width of the button is equivalent to the width of the VerticalScrollbar. For all other DisplayStyles, the width is hardcoded at 14 pixels. All of the EditorButtons default to the VerticalScrollbar width, no matter the DisplayStyle. While this is done so that all of the EditorButtons have the same default width, I'm going to log an issue in our system so we can investigate the behavior further and determine if the DropDownEditorButton should have it's size match the built in DropDown buttons when the DisplayStyle is changed. I'll provide further information regarding the logged issue in a support case created for you.

    In the meantime, the DropDownEditorButton has a Width property that can be set to 14 to force it to match the width of the other dropdown buttons.

    Let me know if you have any questions.

Children