亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? qiledmatrix.pas

?? Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 數(shù)據(jù)顯示編程插件,可用于工業(yè)控制
?? PAS
?? 第 1 頁 / 共 3 頁
字號:
                    begin
                      if not Transparent and (FIndicatorStyle <> ilmisRound) then
                        begin
                          LedCacheObject := FLedCache.Find(IndicatorData.Color);
                          if not Assigned(LedCacheObject) then
                            begin
                              ARect := Rect(0, 0, FIndicatorWidth, FIndicatorHeight);

                              LedCacheObject                     := TLedCacheObject.Create;
                              LedCacheObject.Color               := IndicatorData.Color;
                              LedCacheObject.ActiveBitmap        := TBitmap.Create;
                              LedCacheObject.ActiveBitmap.Width  := FIndicatorWidth;
                              LedCacheObject.ActiveBitmap.Height := FIndicatorHeight;

                              case FIndicatorStyle of
                                ilmisRound     : DrawRound    (LedCacheObject.ActiveBitmap.Canvas, ARect, True, IndicatorData.Color);
                                ilmisRectangle : DrawRectangle(LedCacheObject.ActiveBitmap.Canvas, ARect, True, IndicatorData.Color);
                              end;
                              LedCacheObject.InactiveBitmap        := TBitmap.Create;
                              LedCacheObject.InactiveBitmap.Width  := FIndicatorWidth;
                              LedCacheObject.InactiveBitmap.Height := FIndicatorHeight;

                              case FIndicatorStyle of
                                ilmisRound     : DrawRound    (LedCacheObject.InactiveBitmap.Canvas, ARect, False, IndicatorData.Color);
                                ilmisRectangle : DrawRectangle(LedCacheObject.InactiveBitmap.Canvas, ARect, False, IndicatorData.Color);
                              end;
                              FLedCache.Add(LedCacheObject);
                            end;

                          case IndicatorData.Active of
                            False : BackGroundBitmap.Canvas.Draw(CurrentLeft, CurrentTop, LedCacheObject.InactiveBitmap);
                            True  : BackGroundBitmap.Canvas.Draw(CurrentLeft, CurrentTop, LedCacheObject.ActiveBitmap);
                          end;
                        end
                      else
                        DrawRound(BackGroundBitmap.Canvas, Rect(CurrentLeft,CurrentTop,CurrentLeft+FIndicatorWidth,CurrentTop+FIndicatorWidth), IndicatorData.Active, IndicatorData.Color);

                      if Trim(IndicatorData.Caption) <> '' then
                        begin
                          case IndicatorData.Active of
                            False : Font.Assign(FIndicatorCaptionInactiveFont);
                            True  : Font.Assign(FIndicatorCaptionActiveFont);
                          end;

                          Brush.Style := bsClear;
                          ARect       := Rect(CurrentLeft+1, CurrentTop+1, CurrentLeft + FIndicatorWidth-1, CurrentTop + FIndicatorHeight-1);

                          CenterY := (ARect.Bottom + ARect.Top) div 2;

                          TempRect := ARect;
                          ATextHeight := iDrawText(Canvas, IndicatorData.Caption, TempRect, [itfHCenter, itfVTop, itfNoClip, itfCalcRect]);

                          ARect.Top    := CenterY               - ATextHeight div 2;
                          ARect.Bottom := CenterY + ATextHeight - ATextHeight div 2;

                          iDrawText(Canvas, IndicatorData.Caption, ARect, [itfHCenter, itfVCenter]);
                        end;

                      FIndicatorList^[Col + Row*ColCount].Dirty := False;
                    end;
                   CurrentTop := CurrentTop + FIndicatorHeight + FSpacingVertical;
                end;
              CurrentLeft := CurrentLeft + FIndicatorWidth + FSpacingHorizontal;
            end;
        end;
      ResetBackGroundChange;
    end;
  TransferBackGround(Canvas);
end;
//****************************************************************************************************************************************************
procedure TiLedMatrix.iPaintNonCached(Canvas: TCanvas);
var
  Row, Col      : Integer;
  CurrentLeft   : Integer;
  CurrentTop    : Integer;
  ARect         : TRect;
  TempRect      : TRect;
  IndicatorData : TIndicatorData;
  CenterY       : Integer;
  ATextHeight   : Integer;
begin
  DrawBackGround(Canvas, BackGroundColor);

  with Canvas do
    begin
      CurrentLeft := (Width - (FIndicatorWidth + FSpacingHorizontal)*FColCount) div 2 + 1;

      for Col := 0 to FColCount - 1 do
        begin
          CurrentTop := (Height - (FIndicatorHeight + FSpacingVertical)*FRowCount) div 2 + 1;
          for Row := 0 to FRowCount - 1 do
            begin
              ARect := Rect(CurrentLeft, CurrentTop, CurrentLeft + FIndicatorWidth, CurrentTop + FIndicatorHeight);

              FIndicatorList^[Col + Row*ColCount].ARect := ARect;

              IndicatorData := FIndicatorList^[Col + Row*ColCount];

              case FIndicatorStyle of
                ilmisRound     : DrawRound    (Canvas, ARect, IndicatorData.Active, IndicatorData.Color);
                ilmisRectangle : DrawRectangle(Canvas, ARect, IndicatorData.Active, IndicatorData.Color);
              end;

              if Trim(IndicatorData.Caption) <> '' then
                begin
                  case IndicatorData.Active of
                    False : Font.Assign(FIndicatorCaptionInactiveFont);
                    True  : Font.Assign(FIndicatorCaptionActiveFont);
                  end;

                  Brush.Style := bsClear;
                  ARect       := Rect(CurrentLeft+1, CurrentTop+1, CurrentLeft + FIndicatorWidth-1, CurrentTop + FIndicatorHeight-1);

                  CenterY := (ARect.Bottom + ARect.Top) div 2;

                  TempRect := ARect;
                  ATextHeight := iDrawText(Canvas, IndicatorData.Caption, TempRect, [itfHCenter, itfVTop, itfNoClip, itfCalcRect]);

                  ARect.Top    := CenterY               - ATextHeight div 2;
                  ARect.Bottom := CenterY + ATextHeight - ATextHeight div 2;

                  iDrawText(Canvas, IndicatorData.Caption, ARect, [itfHCenter, itfVCenter]);
                end;
               CurrentTop := CurrentTop + FIndicatorHeight + FSpacingVertical;
            end;
          CurrentLeft := CurrentLeft + FIndicatorWidth + FSpacingHorizontal;
        end;
    end;
end;
//****************************************************************************************************************************************************
procedure TiLedMatrix.DrawRectangle(Canvas: TCanvas; DrawRect: TRect; Active: Boolean; AColor: TColor);
begin
  with Canvas, DrawRect do
    begin
      if Active then
        begin
          Brush.Color := AColor;
          Pen.Color   := AColor;
        end
      else
        begin
          Brush.Color := DimColor(AColor, 3);
          Pen.Color   := DimColor(AColor, 3);
        end;

      Brush.Style := bsSolid;
      Pen.Style   := psSolid;

      Rectangle(Left, Top, Right, Bottom);

      case FIndicatorBevelStyle of
        ibsLowered : iDrawEdge(Canvas, Rect(Left, Top, Right, Bottom), idesSunken);
        ibsRaised  : iDrawEdge(Canvas, Rect(Left, Top, Right, Bottom), idesRaised);
      end;

      if FIndicatorShowReflection then
        begin
          if Active then Pen.Color := clWhite else Pen.Color := AColor;
          Polyline([Point(Left+3, Top+3), Point(Left+5, Top+3)]);
        end;
    end;
end;
//****************************************************************************************************************************************************
procedure TiLedMatrix.DrawRound(Canvas: TCanvas; DrawRect: TRect; Active: Boolean; AColor: TColor);
var
  {$ifdef iVCL}
  SizeDiv2 : Integer;
  {$endif}
  SizeDiv4 : Integer;
  ARect    : TRect;
begin
  with Canvas do
    begin
      if Active then
        begin
          Brush.Color := AColor;
          Pen.Color   := AColor;
        end
      else
        begin
          Brush.Color := DimColor(AColor, 3);
          Pen.Color   := DimColor(AColor, 3);
        end;

      Brush.Style := bsSolid;
      Pen.Style   := psSolid;

      {$ifdef iVCL}
      SizeDiv2 := FIndicatorWidth div 2;
      {$endif}
      SizeDiv4 := FIndicatorWidth div 4;

      with DrawRect do
        begin
          Ellipse(Left, Top, Right, Bottom);

          if FIndicatorShowReflection then
            begin
              if Active then Pen.Color := clWhite else Pen.Color := AColor;

              {$ifdef iVCL}
              Arc(Left + SizeDiv4,  Top + SizeDiv4,  Right - SizeDiv4,  Bottom - SizeDiv4,  Right - SizeDiv2,Top,Left,Bottom - SizeDiv2);
              Arc(Left + SizeDiv4+1,Top + SizeDiv4+1,Right - SizeDiv4-1,Bottom - SizeDiv4-1,Right - SizeDiv2,Top,Left,Bottom - SizeDiv2);
              {$endif}
              {$ifdef iCLX}
              ARect := Rect(Left + SizeDiv4,  Top + SizeDiv4,  Right - SizeDiv4,  Bottom - SizeDiv4);
              Arc(ARect.Left,  ARect.Top,  ARect.Right - ARect.Left,  ARect.Bottom - ARect.Top, 90*16, 90*16);

              InflateRect(ARect, 1, 1);
              Arc(ARect.Left,  ARect.Top,  ARect.Right - ARect.Left,  ARect.Bottom - ARect.Top, 90*16, 90*16);
              {$endif}
            end;

          case FIndicatorBevelStyle of
            ibsLowered :   begin
                             Pen.Color := clBtnShadow;
                             Arc(Left,   Top,   Right,   Bottom,   Right,   Top,   Left,   Bottom);
                             Arc(Left+1, Top+1, Right-1, Bottom-1, Right-1, Top+1, Left+1, Bottom-1);

                             Pen.Color := clBtnHighlight;
                             Arc(Left,   Top,   Right,   Bottom,   Left,   Bottom,   Right,   Top);
                             Arc(Left+1, Top+1, Right-1, Bottom-1, Left+1, Bottom-1, Right-1, Top+1);
                           end;
            ibsRaised    : begin
                             Pen.Color := clBtnHighlight;
                             Arc(Left,   Top,   Right,   Bottom,   Right,   Top,   Left,   Bottom);
                             Arc(Left+1, Top+1, Right-1, Bottom-1, Right-1, Top+1, Left+1, Bottom-1);

                             Pen.Color := clBtnShadow;
                             Arc(Left,   Top,   Right,   Bottom,   Left,   Bottom,   Right,   Top);
                             Arc(Left+1, Top+1, Right-1, Bottom-1, Left+1, Bottom-1, Right-1, Top+1);
                           end;
          end;
        end;
    end;
end;
//****************************************************************************************************************************************************
{ TLedCache }
//****************************************************************************************************************************************************
constructor TLedCache.Create;
begin
  inherited;
  FCacheList := TList.Create;
end;
//****************************************************************************************************************************************************
destructor TLedCache.Destroy;
begin
  Clear;
  FCacheList.Free;
  inherited;
end;
//****************************************************************************************************************************************************
procedure TLedCache.Clear;
begin
  while FCacheList.Count > 0 do
    begin
      TLedCacheObject(FCacheList.Items[0]).Free;
      FCacheList.Delete(0);
    end;
end;
//****************************************************************************************************************************************************
procedure TLedCache.Add(LedCacheObject: TLedCacheObject);
begin
  if FCacheList.Count = 10 then
    begin
      TObject(FCacheList.Items[0]).Free;
      FCacheList.Delete(0);
    end;
  FCacheList.Add(LedCacheObject);
end;
//****************************************************************************************************************************************************
function TLedCache.Find(AColor: TColor): TLedCacheObject;
var
  x : Integer;
begin
  Result := nil;
  for x := 0 to FCacheList.Count -1 do
    begin
      if TLedCacheObject(FCacheList.Items[x]).Color = AColor then
        begin
          Result := TLedCacheObject(FCacheList.Items[x]);
          Break;
        end;
    end;
end;
//****************************************************************************************************************************************************
{ TLedCacheObject }
destructor TLedCacheObject.Destroy;
begin
  ActiveBitmap.Free;
  InActiveBitmap.Free;
  inherited;
end;
//****************************************************************************************************************************************************
{$ifdef iVCL}
function TiLedMatrix.OPCNewDataSpecial(iOPCItem: TiOPCItem): Boolean;
var
  x : Integer;
begin
  Result := inherited OPCNewDataSpecial(iOPCItem);

  for x := 0 to ColCount*RowCount-1 do
    if UpperCase('Row(' + IntToStr(x div ColCount) + ')Col(' + IntToStr(x mod ColCount) + ').Active') = UpperCase(iOPCItem.PropertyName) then
      begin
        Result := True;
        IndicatorActive[x div ColCount, x mod ColCount] := iOPCItem.Data;
      end;
end;
//****************************************************************************************************************************************************
procedure TiLedMatrix.UpdateOPCSpecialList;
var
  x : Integer;
begin
  if not Assigned(OPCSpecialList) then Exit;
  OPCSpecialList.Clear;
  for x := 0 to ColCount*RowCount-1 do
    OPCSpecialList.Add('Row(' + IntToStr(x div ColCount) + ')Col(' + IntToStr(x mod ColCount) + ').Active');
end;
{$endif}
//****************************************************************************************************************************************************
end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色一情一乱一乱一91av| 欧美日韩一区二区在线观看| 亚洲狠狠丁香婷婷综合久久久| 51精品视频一区二区三区| 国产精品一级在线| 午夜精品国产更新| 国产精品白丝在线| 久久美女高清视频| 91精品国产福利| 色88888久久久久久影院按摩| 国产精品自拍三区| 日本不卡一区二区| 亚洲亚洲精品在线观看| 国产精品动漫网站| 日本一区二区三区国色天香| 日韩欧美亚洲一区二区| 欧美性色综合网| 91美女在线看| 播五月开心婷婷综合| 国产一区美女在线| 日本成人中文字幕| 日韩中文字幕91| 国产精品三级在线观看| 久久新电视剧免费观看| 欧美一区二区三区在线看| 欧美日韩在线三区| 色综合天天做天天爱| 国产精品正在播放| 狠狠色丁香久久婷婷综合丁香| 香蕉加勒比综合久久| 亚洲一线二线三线久久久| 17c精品麻豆一区二区免费| 中文在线资源观看网站视频免费不卡| 欧美一区二区三区的| 在线成人免费视频| 欧美日韩国产首页在线观看| 亚洲欧洲日韩在线| 中文字幕一区二区不卡| √…a在线天堂一区| 国产精品成人在线观看| 自拍偷拍亚洲欧美日韩| 亚洲欧美自拍偷拍色图| 亚洲欧美日韩国产成人精品影院| 国产精品传媒入口麻豆| ●精品国产综合乱码久久久久| 亚洲美女在线国产| 午夜激情久久久| 老司机午夜精品99久久| 国精产品一区一区三区mba桃花| 麻豆精品一区二区| 国产乱子轮精品视频| 国产成人在线视频免费播放| 国产成人免费视频精品含羞草妖精| 国产精一区二区三区| 国产黄色精品网站| 成人性生交大片免费看中文网站| 国产a级毛片一区| 顶级嫩模精品视频在线看| 久久99精品国产.久久久久久 | 久久亚洲精华国产精华液| 欧美午夜精品久久久久久孕妇| 色婷婷av一区二区三区软件| www.亚洲免费av| www.欧美日韩| 色狠狠av一区二区三区| 日本电影欧美片| 欧美亚洲愉拍一区二区| 在线播放中文字幕一区| 欧美一区二区三区四区高清| 精品日韩成人av| 国产欧美日韩在线观看| 国产精品私房写真福利视频| 成人免费在线视频观看| 一区二区三区中文在线| 天天做天天摸天天爽国产一区 | 伊人开心综合网| 亚洲国产精品久久久男人的天堂 | 欧美在线观看视频一区二区三区| 欧美中文字幕不卡| 福利一区在线观看| 色成年激情久久综合| 91麻豆精品国产91久久久 | 一区二区三区毛片| 久久精品免费观看| 国产成人精品综合在线观看| 在线观看一区不卡| 91精品国产高清一区二区三区 | 欧美sm美女调教| 国产精品久久久久精k8 | 粉嫩绯色av一区二区在线观看| 色综合一区二区| 国产亚洲精品aa| 樱花草国产18久久久久| 国产成人在线色| 欧美日韩高清在线| 亚洲图片激情小说| 免费一级片91| 在线一区二区三区四区五区| 欧美一区二区三区四区五区| 国产精品网站在线播放| 午夜a成v人精品| 国产成人免费视频网站| 欧美日韩另类一区| 中国色在线观看另类| 久久久国产午夜精品| 亚洲欧美激情在线| 国产一区二区三区四区在线观看| 色婷婷国产精品综合在线观看| 日韩一区二区精品在线观看| 亚洲日本成人在线观看| 卡一卡二国产精品| 在线观看视频欧美| 久久这里只有精品首页| 亚洲电影在线免费观看| 国产精品影视在线| 精品日本一线二线三线不卡 | 麻豆成人综合网| 欧美系列日韩一区| 亚洲色图19p| caoporn国产一区二区| 欧美国产日韩一二三区| 国产成人综合亚洲网站| 91精品国产入口| 亚洲国产色一区| 色诱视频网站一区| 中文字幕一区二区三区视频| 精品午夜久久福利影院| 91精品国产色综合久久不卡电影| 亚洲免费观看视频| 99久久免费精品高清特色大片| 欧美一区二区三区的| 一区二区成人在线观看| 99r国产精品| 中文字幕国产精品一区二区| 国产呦萝稀缺另类资源| 日韩一区二区三区电影在线观看 | 精品一区二区三区在线视频| 欧美成人r级一区二区三区| 亚洲18色成人| 欧美一级日韩不卡播放免费| 亚洲一区二区三区四区五区中文| 欧美四级电影在线观看| 亚洲老妇xxxxxx| 欧美视频在线播放| 亚洲综合男人的天堂| 欧美另类变人与禽xxxxx| 亚洲无人区一区| 欧美日韩免费电影| 亚洲午夜影视影院在线观看| 亚洲欧美自拍偷拍| av中文字幕不卡| 国产欧美日本一区视频| 成人激情电影免费在线观看| 亚洲天堂成人在线观看| 一本大道综合伊人精品热热| 亚洲精品视频在线看| 欧美午夜精品理论片a级按摩| 亚洲国产日韩一区二区| 欧美卡1卡2卡| 久久精品国产久精国产| 久久天天做天天爱综合色| 日韩视频一区在线观看| 午夜精品久久久久久久99樱桃| 欧美大片在线观看一区| 欧洲亚洲国产日韩| 国产精品一区二区果冻传媒| 亚洲欧美日韩国产综合| 26uuu成人网一区二区三区| 岛国精品一区二区| 日本sm残虐另类| 亚洲国产精品欧美一二99| 国产精品乱人伦一区二区| 日韩三级视频在线看| 在线观看av一区| 欧美xxxxxxxxx| 欧美精品黑人性xxxx| 国产一区二区三区日韩| 奇米888四色在线精品| 国产调教视频一区| 欧美一区二区三区啪啪| 欧美影院午夜播放| 欧美少妇一区二区| 欧美成人激情免费网| 国产肉丝袜一区二区| 亚洲综合小说图片| 国产精品久久久久久久久搜平片 | 麻豆中文一区二区| 亚洲成人先锋电影| 丁香亚洲综合激情啪啪综合| 日韩一区二区精品葵司在线| kk眼镜猥琐国模调教系列一区二区| 亚洲精品视频自拍| 久久精品一区二区三区四区| 色综合视频一区二区三区高清| 久草这里只有精品视频| 最好看的中文字幕久久| 26uuu国产电影一区二区| 在线视频综合导航| 国产高清精品网站| 亚洲丝袜制服诱惑|