Tips and Frequently Asked Questions

 Programmatically setting header captions/group captions/custom groups


This planner header shows normal header captions and group captions

Programmatically, this can be set by filling the Planner.Header.Captions and Planner.Header.GroupCaptions stringlists in following way:

with Planner1.Header do 
begin 
  Captions.Clear; GroupCaptions.Clear; 
  Captions.Add(''); // take first sidebar header section into account 
  Captions.Add('A1'); 
  Captions.Add('A2'); 
  Captions.Add('A3'); 
  GroupCaptions.Add('Group A'); 
  Captions.Add('B1'); 
  Captions.Add('B2'); 
  Captions.Add('B3'); 
  GroupCaptions.Add('Group B'); 
end;
Note: At design time it is easy to enter multiline header captions by using „\n‟ as line separator. Setting at design time in the Captions stringlist editor : „This is line 1\n and here line2‟ will result in a caption with:

This is line1
and here line 2

In the example above, the header group size is equal for all groups and is set by the property Planner.PositionGroups. In order to show different group sizes for different columns, the Planner.Header.CustomGroups can be used. To use custom position groups, set Planner.PositionGroups to 1. The code snippet below produces a header with 3 groups with respectively a span of 2 positions, span of 3 positions and span of 1 position:

var 
  i: Integer; 
begin 
  with planner1.Header do
  begin 
    CustomGroups.Clear; 
    with CustomGroups.Add do 
    begin 
      Caption := 'Group 1'; 
      Span := 2; 
    end; 
    with CustomGroups.Add do 
    begin 
      Caption := 'Group 2'; 
      Span := 3; 
    end; 
    with CustomGroups.Add do 
    begin 
      Caption := 'Group 3'; 
      Span := 1; 
    end;

    Captions.Clear; 
    Captions.Add(''); 
    for i := 1 to 6 do 
      Captions.Add('Col '+inttostr(i)); 
    end; 
end;


TMS VCL UI Pack

check_circle
TPlanner
is part of
TMS VCL UI Pack
info
Windows UI Essentials

Pricing

Single Developer License Small Team License Site License
 

TMS VCL UI Pack


€ 375

150 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
MOST POPULAR

TMS VCL Subscription


€ 895

450 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS VCL UI Pack
check  All TMS VCL products
more_horiz  Discover more
BEST VALUE

TMS ALL-ACCESS


€ 1,795

575 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS VCL UI Pack
check  All TMS VCL products
check  All TMS products
more_horiz  Discover more
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.

TMS ALL-ACCESS

key
Your unlimited access to all TMS products
local_offer
One money and time saving bundle

Free Trial

Start a free TMS VCL UI Pack evaluation today!
RAD Studio


What our customers say

Thank you Mr. Fierens for your time and assistance. Just want to say your VCL Pack is fabulous.

- Mark Mihevc

Thank you for this superb tool collection!

- Henning Swiboda

Thanks for the effort to create the VCL grid goodies ! These chunks of outcome-oriented teaching-material are very useful. It's unbelievable how powerful the grid is when one knows how to unveil it's countless options...

- Feichtenschlager Thomas

I don''t know how I could have created and managed so many projects without the AdvStringGrid! And although there is already so much functionality in it I''m using my own derived version with automatic column widths, enhanced export to Excel (including text colors, backround colors, comments, merged cells and more), the possibility to fill in static data at design time and more. This often allows me to build a new tool in hours instead of days! Support is also great! Thanks.

- Raß Jacqueline

Keep up the great work...Every new release of TMS Component Pack is like Xmas. Top quality components! :-)

- Aidan Thomson via email

TMS WEB Core

language
Create modern web apps in Delphi & VSC
build_circle
Use Object Pascal code to build JavaScript apps