Recent

Author Topic: TDBEdit alignment  (Read 18416 times)

Edwin

  • New Member
  • *
  • Posts: 22
TDBEdit alignment
« 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

Anonymous

  • Guest
RE: TDBEdit alignment
« Reply #1 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?

cysco

  • Newbie
  • Posts: 2
Re: TDBEdit alignment
« Reply #2 on: July 22, 2010, 05:36:23 am »
There is solution for this bug

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

Or you can simply change the alignment manually

Code: [Select]
TDBEdit.Alignment = taRightJustify
Happy coding

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
Re: TDBEdit alignment
« Reply #3 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. :)
« Last Edit: May 25, 2015, 10:05:53 am by jma_sp »
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

 

TinyPortal © 2005-2018