⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qipipejoint.pas

📁 Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 数据显示编程插件,可用于工业控制
💻 PAS
字号:
{*******************************************************}
{                                                       }
{       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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -