Hi,
you have to call AddSpaceForCloseBtn procedure after definition of all pages/tabs if you want to use close button.
Then free place is added.
{ add spaces to all tabs to make place for close buttons }
procedure AddSpaceForCloseBtn(Center: Boolean = false);
Description of events is commented in source code or in the help file:
{ event for user defined state of tab }
property OnTabGetProps: TTabGetPropsEvent read FOnTabGetProps write FOnTabGetProps;
{ event called after close button click }
property OnTabClose: TTabCloseEvent read FOnTabClose write FOnTabClose;
{ event used for definition of tab popup }
property OnTabGetPopupMenu: TTabGetPopupMenu read FOnTabGetPopupMenu write FOnTabGetPopupMenu;
{ event for user drawing of tab background }
property OnDrawTabBackground: TTabDrawTabEvent read FOnDrawTabBackground write FOnDrawTabBackground;
{ event for user drawing of tab content }
property OnDrawTabContent: TTabDrawTabEvent read FOnDrawTabContent write FOnDrawTabContent;
{ event for user drawing of tab close button }
property OnDrawTabCloseBtn: TTabDrawTabEvent read FOnDrawTabCloseBtn write FOnDrawTabCloseBtn;
{ event for any additional user drawing after tab is drawn }
property OnDrawTabFinalize: TTabDrawTabEvent read FOnDrawTabFinalize write FOnDrawTabFinalize;
I hope it helps
Tomas