qipipejoint.pas

来自「Iocomp Ultra Pack v3.0.2 Sources.For.Del」· PAS 代码 · 共 52 行

PAS
52
字号
{*******************************************************}
{                                                       }
{       TiPipeJoint Component                           }
{                                                       }
{       Copyright (c) 1997,2003 Iocomp Software         }
{                                                       }
{*******************************************************}
{$I iInclude.inc}

{$ifdef iVCL}unit  iPipeJoint;{$endif}
{$ifdef iCLX}unit QiPipeJoint;{$endif}

interface

uses
  {$I iIncludeUses.inc}
  {$IFDEF iVCL} iTypes,  iGPFunctions,  iMath,  iCustomComponent;{$ENDIF}
  {$IFDEF iCLX}QiTypes, QiGPFunctions, QiMath, QiCustomComponent;{$ENDIF}

type
  TiPipeJoint = class(TiCustomComponent)
  protected
    procedure iPaintTo(Canvas: TCanvas);    override;
  public
    constructor Create(AOwner: TComponent); override;
  published
    property Width  default 25;
    property Height default 25;

    property BackGroundColor;
  end;

implementation
//****************************************************************************************************************************************************
constructor TiPipeJoint.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);

  Width  := 25;
  Height := 25;

  BorderStyle := ibsRaised;
end;
//****************************************************************************************************************************************************
procedure TiPipeJoint.iPaintTo(Canvas: TCanvas);
begin
  DrawBackGround(Canvas, BackGroundColor);
  DrawBorder(Canvas);
end;
//****************************************************************************************************************************************************
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?