Maybe it´s a windows limitation that TEdit cannot be right aligned. On Delphi you can use a TMemo as set it´s alignment property. On Lazarus this property is missing. You could try to implement TMemo.Alignment, or submit a feature request on the bug tracker about it.