Editing a cell and text alignment is gtaTrailing

Hi,

I would like to know if the defaultalignment of Advstringgrid is the same with setting the Alayout.TextAlignment on GetCellLayout in FNCGrid? I experienced a weird behavior when editing the cell of an fncgrid when the layout is gtatrailing. The expected behavior when layout is gtatrailing should be the same when the advstringgrid alignment is rightjustify.

Thank you!

We have investigate this here and couldn't immediately see an issue, can you provide a code snippet which indicates the issue?

Good day! This is what I did:

procedure TForm4.TMSFNCGrid1GetCellLayout(Sender: TObject; ACol, ARow: Integer;
ALayout: TTMSFNCGridCellLayout; ACellState: TTMSFNCGridCellState);
begin
ALayout.TextAlign := gtaTrailing;
end;
This is how it looked like before editing the cell
image

This is how it looked like while editing the text 'Sample'.
image

Let me know what I can do. Thank you.

hi,

We have investigated this here and couldn't reproduce. Are you using the latest version of the TMS FNC UI Pack? (v 3.7.2.1)

1 Like

Thank you! works fine after updating

Thanks for reporting!