Jump to content

TUniDBEdit alignment property


Nirlan

Recommended Posts

Windows 10 Pro

Delphi 10 Seattle

Unigui 0.99.50.1211

 

there is a bug in UniDBEdit  and  UniDBNumberEdit  with taRightJustify: at design time alignment to right.
At run time it align to left  (it's ignored).

Link to comment
Share on other sites

Hi,

 

It's not a bug..

 

There is a property of UseFieldAlignment, which looks at DataSet-> Field-> Alignment

 

You must assign a value of False in the property UseFieldAlignment, or,
to assign the correct value of the alignment in the DataSet Field

 

Try,

Best regards.

Link to comment
Share on other sites

While, you can like this:

type
  TUniNumbDBEdit = class(TUniCustomDBEdit)

  end;
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  TUniNumbDBEdit(UniDBNumberEdit1).UseFieldAlignment := false;
  UniDBNumberEdit1.Alignment := taRightJustify;
end;

Try,

Best regards.

Link to comment
Share on other sites

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...