Problem

Editor alignment problems

Posted 1 year ago by Avatar Ralph Gucwa - Racelogic
  1. Editors don't respond to HorizontalContentAlignment property.
    Until now in all my sofware the numbers displayed by various editors (TextBoxes, custom numeric spinners, etc.) were right aligned.
    This way the numbers displayed in a column of editors looked natural:
         10
       2300
      48057
        250
       3380
      88480
    Actipro editors always align the displayed value to the left and completely ignore the HorizontalContentAlignment property.  The numbers are misaligned:
      10
      2300
      48057
      250
      3380
      88480
  2. Editors add blank space to the left of the up/down buttons, it obscures the numbers.
    As I can't add any screenshots on this forum, here are the steps to reproduce:
    • Display an Int32EditBox, set its width to 43.
    • Type 123 into the edit box.
    • Press Home to move the cursor to the beginning of the text.
    • Press Tab to move the input focus to another control.
    There should be enough space to display 3 or even 4 digits, but for some reason digit '3' will be partially obscured by some white rectangle displayed between the number and the up/down buttons.

[Modified 1 year ago]


Comments (2)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA

Hi Ralph,

1) Edit boxes have a TextAlignment property you can set.  You'd want to use that instead of HorizontalContentAlignment.

2) Good point, we've found a couple ways to reduce the right-side padding so that there is a slightly wider editing surface area.  This update will be in the next build 662.


Actipro Software Support
Posted 1 year ago by Ralph Gucwa - Racelogic

1) Yeah... I know... I should read the manual more often...

2) Fantastic, thank you!

Information The latest build of this product (2018.1 build 0672) was released 2 months ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.