Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

Hi,

 

Yes, you are right .. Here, skipped published property UseFieldAlignment
I think in the next version, this feature will be added

 

Best regards.

Posted

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.

  • 2 years later...
Posted

Hi, I think this still don't exists in new builds.

 

EDIT:

I've managed to workaround like this.

NumberEdit.DataSource.DataSet.FieldByName(YourFieldName).Alignment:= taLeftJustify;

 

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