Lazarus

Miscellaneous => Suggestions => LCL => Topic started by: Edwin on August 03, 2005, 01:03:55 am

Title: TDBEdit alignment
Post by: Edwin on August 03, 2005, 01:03:55 am
Hello again,

How can I set the alignment of a TDBEdit to taRightJustify?
Even when the (Data)field of the DBEdit is set to taRightJustify the alignment is left.

Thanks,

Edwin
Title: RE: TDBEdit alignment
Post by: Anonymous on August 29, 2005, 09:56:52 pm
The alignment of a TDBGrid column is automatically set by the alignment of its Datafield.
Is it possible to implement this same behaviour in TDBEdit?
Title: Re: TDBEdit alignment
Post by: cysco on July 22, 2010, 05:36:23 am
There is solution for this bug

http://bugs.freepascal.org/view.php?id=14328 (http://bugs.freepascal.org/view.php?id=14328)

Or you can simply change the alignment manually

Code: [Select]
TDBEdit.Alignment = taRightJustify
Happy coding
Title: Re: TDBEdit alignment
Post by: jma_sp on May 25, 2015, 10:03:05 am
In Lazarus 1.4 it works for both dbedit and edit:

TDBEdit.Alignment = taLefttJustify;
TDBEdit.Alignment = tacenter;
TDBEdit.Alignment = taRightJustify;

It would be great if it could be present in object inspector for dbedit as property, same as edit. :)