Blog Options
Archive
<< April 2024 >>-
Wednesday 17
- New free component for sophisticated file uploads with TMS WEB Core -
Tuesday 16
- Closing the gap with TMS FNC UI Pack new additions -
Thursday 11
- Unveiling the Latest Enhancements in TMS VCL UI Pack -
Friday 5
- TMS components and Delphi and C++Builder 12.1 -
Wednesday 3
- Customizing the login page of your application using TMS Sphinx
- A Python library for using StellarDS.io effortlessly
- Introducing: How it Works with Holger - Building a Pexels gallery app with TMS WEB Core video series
- TMS FNC Cloud Pack with StellarDS.io backend: unparalleled productivity in VCL & FMX
Authors
- Bernard Roussely (1)
- Wagner Landgraf (82)
- Roman Yankovsky (2)
- Bart Holvoet (27)
- Aaron Decramer (17)
- Pieter Scheldeman (99)
- Nancy Lescouhier (32)
- Adrian Gallero (33)
- Bruno Fierens (403)
- Marcos Douglas B. Santos (5)
- Wagner R. Landgraf (1)
- Bradley Velghe (16)
- Bernard (2)
- Andrew Simard (86)
- Holger Flick (15)
- Gjalt Vanhouwaert (30)
- Tunde Keller (22)
- Masiha Zemarai (119)
Blog
All Blog Posts | Next Post | Previous PostVisualize TMS Planner event relations with arrows
Bookmarks:Monday, August 25, 2014
It's already for a longer time that our Planner scheduling components supports linking events. That means that when the start time or end time or both times of an event is changed, the start or end time of a linked event will also change. The change in start or end time of linked event will have the same delta as the source event. The link action of choice can be selected with PlannerItem.LinkType and offers following choices:- ltLinkFull: when start time and end time of the event is changed, the start and end time of the linked item also changes.
- ltLinkBeginEnd: when the start time of an event is changed, the end time of the linked event also changes.
- ltLinkEndBegin: when the end time of an event is changed, the start time of the linked event also changes.
- ltLinkBeginBegin: when the start time of an event is changed, the start time of the linked event also changes.
- ltLinkEndEnd: when the end time of an event is changed, the end time of the linked event also changes.
var plit1,plit2: TPlannerItem; begin plit1 := Planner1.CreateItem; plit1.ItemStartTime := EncodeTime(10,0,0,0); plit1.ItemEndTime := EncodeTime(12,0,0,0); plit1.ItemPos := 0; plit1.CaptionType := ctText; plit1.CaptionText := 'item 1'; plit1.Text.Text := 'link from'; plit2 := Planner1.CreateItem; plit2.ItemStartTime := EncodeTime(14,0,0,0); plit2.ItemEndTime := EncodeTime(16,0,0,0); plit2.ItemPos := 1; plit2.CaptionType := ctText; plit2.CaptionText := 'item 2'; plit2.Text.Text := 'link to'; end;
When applying one link with code:
plit1.LinkedItem := plit2; plit1.LinkType := ltLinkFull;
plit1.LinkedItem := plit2; plit1.LinkType := ltLinkFull; plit2.LinkedItem := plit1; plit2.LinkType := ltLinkFull;
plit1.LinkedItem := plit2; plit1.LinkType := ltLinkNone; plit1.LinkArrow := laFromTo; plit1.LinkColor := clGreen;
plitA.LinkedItem := plitB; plitA.LinkType := ltLinkNone; plitA.LinkArrow := laBoth; plitA.LinkColor := clRed;
We hope you'll find this new feature useful and you can benefit from it to create better applications for your customers. Check out this and more in the TMS Planner.
Bruno Fierens
Bookmarks:
This blog post has not received any comments yet.
All Blog Posts | Next Post | Previous Post