Turn off the original title bar by setting the form's BorderStyle to bsNone. Then add a top-aligned panel as new title bar which you can colorize in any way and to which you can add SpeedButtons or whatever you want. In order to be able to drag the window with the mouse on the title bar you should add these event handlers for the panel's OnMouseDown and OnMouseMove:
type
TForm1 = class(TForm)
Panel1: TPanel;
procedure Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Panel1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer
);
private
FMouseDownPt: TPoint;
public
end;
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
FMouseDownPt := Point(X, Y);
end;
procedure TForm1.Panel1MouseMove(Sender: TObject; Shift: TShiftState;
X, Y: Integer);
begin
if (ssLeft in Shift) then
begin
Left := Left + (X - FMouseDownPt.X);
Top := Top + (Y - FMouseDownPt.Y);
end;
end;