lazarus/lcl/interfaces/fpgui/fpguiwspairsplitter.pp

87 lines
2.7 KiB
ObjectPascal

{ $Id: FpGuiwspairsplitter.pp 5319 2004-03-17 20:11:29Z marc $}
{
*****************************************************************************
* FpGuiWSPairSplitter.pp *
* ------------------- *
* *
* *
*****************************************************************************
*****************************************************************************
This file is part of the Lazarus Component Library (LCL)
See the file COPYING.LCL, included in this distribution,
for details about the license.
*****************************************************************************
}
unit FpGuiWSPairSplitter;
{$mode objfpc}{$H+}
interface
uses
////////////////////////////////////////////////////
// I M P O R T A N T
////////////////////////////////////////////////////
// To get as little as posible circles,
// uncomment only when needed for registration
////////////////////////////////////////////////////
// PairSplitter,
////////////////////////////////////////////////////
fpguiwsprivate, fpg_panel,
Controls, LCLType,
WSPairSplitter, WSLCLClasses;
type
{ TFpGuiWSPairSplitterSide }
TFpGuiWSPairSplitterSide = class(TWSPairSplitterSide)
private
protected
public
published
class function CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): TLCLHandle; override;
end;
{ TFpGuiWSCustomPairSplitter }
TFpGuiWSCustomPairSplitter = class(TWSCustomPairSplitter)
private
protected
public
end;
implementation
{ TFpGuiWSPairSplitterSide }
class function TFpGuiWSPairSplitterSide.CreateHandle(
const AWinControl: TWinControl; const AParams: TCreateParams): TLCLHandle;
var
lCustomPanel: TFPGUIPrivateCustomPanel;
begin
{$ifdef VerboseFPGUIIntf}
WriteLn(Self.ClassName,'.CreateHandle ',AWinControl.Name);
{$endif}
lCustomPanel := TFPGUIPrivateCustomPanel.Create(AWinControl, AParams);
lCustomPanel.Panel.Style:=bsFlat;
Result := TLCLHandle(lCustomPanel);
end;
initialization
////////////////////////////////////////////////////
// I M P O R T A N T
////////////////////////////////////////////////////
// To improve speed, register only classes
// which actually implement something
////////////////////////////////////////////////////
// RegisterWSComponent(TPairSplitterSide, TFpGuiWSPairSplitterSide);
// RegisterWSComponent(TCustomPairSplitter, TFpGuiWSCustomPairSplitter);
////////////////////////////////////////////////////
end.