FNCPlanner : get column width ?

Hello,

I'm using FNCPlanner in a VCL program.
When I do planner.timelineappearence.stretch := true (or planner.positionsappearence.stretch := true in horizontal mode), columns are well resized.
How I could get the new width ? When I read timeline "DisplayUnitSize" or positionsappearence "Size", they seem not be updated after stretch := true

Thank you for your answer
Alexandre Boisramé

The new size is not updated in properties. it is internally kept in a protected property. You can access it via

type
  TTMSFNCPlannerOpen = class(TTMSFNCPlanner);

procedure TForm1.FormCreate(Sender: TObject);
var
  cw: Integer;
begin
  cw := TTMSFNCPlannerOpen(TMSFNCPlanner1).ColumnWidths[0];
end;

Thank you !
Have a good day
Alexandre Boisramé

1 Like