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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...