unit BevelInner;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, 
  Controls, Forms, Dialogs, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    CreateStatusLine: TButton;
    Panel1: TPanel;
    procedure CreateStatusLineClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

// BeginExample: BevelInner
// Property: ExtCtrls.TCustomPanel.BevelInner
// Property: ExtCtrls.TCustomPanel.BevelOuter
// Property: ExtCtrls.TCustomPanel.BorderWidth
// Property: ExtCtrls.TCustomPanel.BevelWidth

// BeginCode
{
This example uses a panel component and a button named 
CreateStatusLine on a form. The code moves the panel to the 
bottom of the form when the user clicks the button and gives
the panel the appearance of a status line by changing the 
value of the BevelInner, BevelOuter, BevelWidth, and 
BorderWidth properties.
} 
procedure TForm1.CreateStatusLineClick(Sender: TObject);
begin
  with Panel1 do
  begin
    Align := alBottom;
    BevelInner := bvLowered;
    BevelOuter := bvRaised;
    BorderWidth := 1;
    BevelWidth := 1;
  end;
end;
// EndCode
// EndExample: BevelInner
end.
