unit PanelWrapper;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, PanelSplitter, Highlightning, PanelCollection;
type
// The Panel Wrapper
TPanelState = (psDefault, psUp, psDown);
TPanelNumbers = (spnNone, spnCenter, spnLeft, spnRight);
TPanelWrapper =
class(TPanel)
private
{ Private-Deklarationen }
FPanelSplitter: TPanelSplitter;
FPanelState: TPanelState;
FPanelNumbers: TPanelNumbers;
FHighlight: THighlightning;
FpcPanels: TPanels;
procedure SetPanels(
const NewPanels: TPanels);
procedure SetPanelSplitter(
const NewPanelSplitter: TPanelSplitter);
procedure SetPanelState(
const NewPanelState: TPanelState);
procedure SetPanelNumbers(
const NewPanelNumbers: TPanelNumbers);
procedure SetHighlight(
const NewHighlight: THighlightning);
protected
{ Protected-Deklarationen }
procedure Paint;
override;
public
{ Public-Deklarationen }
constructor Create(AOwner: TComponent);
override;
destructor Destroy;
override;
published
{ Published-Deklarationen }
property AutoSize
default true;
property Panels: TPanels
read FpcPanels
write SetPanels;
property PanelSplitter: TPanelSplitter
read FPanelSplitter
write SetPanelSplitter;
property PanelState: TPanelState
read FPanelState
write SetPanelState
Default psDefault;
property ShowPanelNumbers: TPanelNumbers
read FPanelNumbers
write SetPanelNumbers
Default spnNone;
property Highlight: THighlightning
read FHighlight
write SetHighlight;
end;
procedure Register;
implementation