Is there a way to set ItemCachingMode at runtime? The property is protected.
I have strange effects, that the move/Size areas are not properly displayed. With setting FItemCachingMode := picmNoCaching in create - everything works fine, but I have to modify source always, when a new release arrived.
Hi,
Yes you can access protected properties with the following code. Please note that changing the ItemCachingMode at runtime is not officially supported.
type
TTMSFMXPlannerOpen = class(TTMSFMXPlanner);
procedure TForm66.FormCreate(Sender: TObject);
begin
TMSFMXPlanner1.BeginUpdate;
TTMSFMXPlannerOpen(TMSFMXPlanner1).ItemCachingMode := picmNoCaching;
TMSFMXPlanner1.EndUpdate;
end;
It works, Thanx - I would not change - but in delayed mode - the items are not always updated. with noCaching it works well.