Normally, the text in The PlannerItem wraps. Is there a way to switch off the break?
1 Like
There is currently no property to switch off wordwrapping. We'll see if we can add properties to controls this, you can use the following approach instead:
procedure TForm6.TMSFNCPlanner1BeforeDrawItemText(Sender: TObject;
AGraphics: TTMSFNCGraphics; ARect: TRectF; AItem: TTMSFNCPlannerItem;
AText: string; var AAllow: Boolean);
begin
AAllow := False;
AGraphics.DrawText(ARect, AText, False, TMSFNCPlanner1.ItemsAppearance.TextHorizontalTextAlign, TMSFNCPlanner1.ItemsAppearance.TextVerticalTextAlign);
end;
1 Like
Thank you Pieter,
That's what I wanted. Now the items look better ;)
Great! Thanks for the feedback.