Tips and Frequently Asked Questions
Position gap area colors
With the new OnPositionGapProp() event in T(DB)Planner, it is now possible to color code particular things in the position gap area. The position gap is enabled with setting Planner.PositionGap to a value different from zero. When this is enabled, the event OnPositionGapProp is triggered and via ABrush & APen properties, the position gap area color can be dynamically changed.
Sample code:
var workhourstart: TDateTime; workhourend: TDateTime; lunchhourstart: TDateTime; lunchhourend: TDateTime; procedure TForm4.FormCreate(Sender: TObject); begin Planner1.PositionGap := 10; workhourstart := EncodeTime(8,0,0,0); workhourend := EncodeTime(17,0,0,0); lunchhourstart := EncodeTime(12,0,0,0); lunchhourend := EncodeTime(13,0,0,0); end; procedure TForm4.Planner1PositionGapProp(Sender: TObject; Position, Index: Integer; ABrush: TBrush; APen: TPen); var dt: TDateTime; begin dt := Frac(Planner1.CellToTime(Position, Index)); if (dt >= workhourstart) and (dt <= workhourend) then begin ABrush.Color := clYellow; APen.Color := clYellow; end; if (dt >= lunchhourstart) and (dt <= lunchhourend) then begin ABrush.Color := clWebOrange; APen.Color := clWebOrange; end; end;
Pricing
Single Developer License
Small Team License
Site License
TMS VCL UI Pack
€ 375
€
150
yearly renewal
license for 1 developer
MOST POPULAR
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.
Free Trial
Note that the TMS VCL UI Pack replaces the TMS Component Pack. Both products can't be installed simultaneously. Therefore TMS Component Pack must first be uninstalled before installing the TMS VCL UI Pack