It appears the OnColumnSized event is not working for the TTMSFNCGrid component.
In unit FMX.TMSFNCGridData on line 2,796 .. I can see the procedure is empty.
are there any plans to integrate/expose that event in the next version?
Dave
It appears the OnColumnSized event is not working for the TTMSFNCGrid component.
In unit FMX.TMSFNCGridData on line 2,796 .. I can see the procedure is empty.
are there any plans to integrate/expose that event in the next version?
Dave
The implementation is in FMX.TMSFNCCustomGrid.pas
procedure TTMSFNCCustomGrid.DoColumnSized(ACol: Integer;
NewWidth: Single);
begin
inherited;
if Assigned(OnColumnSized) then
OnColumnSized(Self, ACol, NewWidth);
end;
With a default TTMSFNCGrid on the form and the following code, the OnColumnSized event is working fine:
TMSFNCGrid1.RandomFill;
TMSFNCGrid1.Options.Mouse.ColumnSizing := True;
Thanks for letting me know. Yes, you are correct, it does work. Not entirely sure why it wasn't working yesterday. I suspect its because I have 10 grids in my application and got my wires crossed somewhere.
thanks again
No worries, thanks for confirming!