Nirlan Posted October 9, 2015 Share Posted October 9, 2015 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 More sharing options...
Sherzod Posted October 10, 2015 Share Posted October 10, 2015 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 More sharing options...
Nirlan Posted October 12, 2015 Author Share Posted October 12, 2015 Thank you for your answer. Unfortunately the UniDBNumberEdit does not have this property. Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2015 Share Posted October 12, 2015 Hi, Yes, you are right .. Here, skipped published property UseFieldAlignmentI think in the next version, this feature will be added Best regards. Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2015 Share Posted October 12, 2015 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 More sharing options...
skafy Posted September 21, 2018 Share Posted September 21, 2018 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; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now