sPageControl.pas
procedure TsPageControl.WndProc(var Message: TMessage);
WM_LBUTTONUP, WM_LBUTTONDOWN:
if Assigned(OnCloseBtnClick) then OnCloseBtnClick(Self, i, b, Act);
and
procedure TsPageControl.CloseClick(Sender: TObject);
if Assigned(OnCloseBtnClick) then OnCloseBtnClick(Self, TsTabBtn(Sender).Page.TabIndex, ToClose, Act);
OnCloseBtnClose Renamed OnClosePage, More appropriate.
if you add a method closePage(iIndex : Integer) to closing the, Just like TsPageControl.CloseClick. it More convenient.
sorry my bad english.
thanks