Lazarus
Miscellaneous => Suggestions => LCL => Topic started 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
-
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?
-
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
TDBEdit.Alignment = taRightJustify
Happy coding
-
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. :)