Forum > LCL
TDBEdit alignment
(1/1)
Edwin:
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
Anonymous:
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?
cysco:
There is solution for this bug
http://bugs.freepascal.org/view.php?id=14328
Or you can simply change the alignment manually
--- Code: ---TDBEdit.Alignment = taRightJustify
--- End code ---
Happy coding
jma_sp:
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. :)
Navigation
[0] Message Index