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

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

?? aactrls.pas

?? 該控件顯示公歷和農(nóng)歷
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
//繪制畫布
procedure TAALinkLabel.PaintCanvas;
begin
  if FMouseIn or (FadeStyle <> fsNone) then
    Bitblt(Canvas.Handle, 0, 0, Width, Height, BlendBmp.Canvas.Handle, 0, 0,
      SRCCOPY)
  else
    inherited;
end;

//淡入淡出
procedure TAALinkLabel.OnFadeTimer(Sender: TObject);
begin
  if Abs(NewProg - Progress) > 1 then
    NewProg := Progress;
  case FadeStyle of
    fsIn: begin               //淡入
        NewProg := NewProg + csMaxProgress * FadeTimer.Interval div HotLink.FadeDelay;
        if NewProg > csMaxProgress then
        begin
          NewProg := csMaxProgress;
          FadeStyle := fsNone;
        end;
        Progress := Round(NewProg);
      end;
    fsOut: begin              //淡出
        NewProg := NewProg - csMaxProgress * FadeTimer.Interval div HotLink.FadeDelay;
        if NewProg < 0 then
        begin
          NewProg := 0;
          FadeStyle := fsNone;
        end;
        Progress := Round(NewProg);
      end;
    fsNone: begin             //無
        FadeTimer.Enabled := False;
      end;
  end;
end;

//繪制熱點畫布
procedure TAALinkLabel.DrawHot;
var
  OffPoint: TPoint;
  th, tw: Integer;
  AAEffect: TAAEffect;
begin
  BeginUpdate;
  try
    AAEffect := TAAEffect.Create(nil);
    AAEffect.Assign(AAFont.Effect);

    AAFont.Canvas := HotBmp.Canvas;
    AAFont.Effect.Assign(HotLink.FontEffect);
    HotBmp.Canvas.Font.Assign(Font); //字體
    HotBmp.Canvas.Font.Color := HotLink.Color;
    if HotLink.UnderLine then
      HotBmp.Canvas.Font.Style := HotBmp.Canvas.Font.Style + [fsUnderline];
    th := AAFont.TextHeight(Caption); //文本高度
    tw := AAFont.TextWidth(Caption); //文本寬度
    if AutoSize and (Align = alNone) then //自動設(shè)定大小
    begin
      OffPoint := Point(Border, Border);
    end else begin
      case Effect.Alignment of //水平對齊方式
        taLeftJustify: OffPoint.x := Border;
        taCenter: OffPoint.x := (ClientWidth - tw) div 2;
        taRightJustify: OffPoint.x := ClientWidth - Border - tw;
      end;
      case Effect.Layout of   //垂直對齊方式
        tlTop: OffPoint.y := Border;
        tlCenter: OffPoint.y := (ClientHeight - th) div 2;
        tlBottom: OffPoint.y := ClientHeight - Border - th;
      end;
    end;
    HotBmp.Height := ClientHeight;
    HotBmp.Width := ClientWidth;
    HotBmp.Canvas.Brush.Color := HotLink.BackColor;
    HotBmp.Canvas.Brush.Style := bsSolid;
    if HotLink.Transparent then
    begin
      CopyParentImage(HotBmp.Canvas);
    end else if not HotLink.IsBackEmpty then
    begin
      DrawBackGround(HotBmp.Canvas, Rect(0, 0, HotBmp.Width, HotBmp.Height),
        HotLink.BackGround.Graphic, HotLink.BackGroundMode);
    end else
    begin
      HotBmp.Canvas.FillRect(ClientRect);
    end;
    HotBmp.Canvas.Brush.Style := bsClear;
    AAFont.TextOut(OffPoint.x, OffPoint.y, Caption); //平滑字體輸出

    AAFont.Effect.Assign(AAEffect);
    AAEffect.Free;
  finally
    EndUpdate;
  end;
end;

//鼠標移入開始淡入
procedure TAALinkLabel.CMMouseEnter(var Message: TMessage);
begin
  if Enabled then
  begin
    FMouseIn := True;
    DrawMem;
    DrawHot;
    if HotLink.Fade then
    begin
      FadeStyle := fsIn;
    end else
      Progress := csMaxProgress;
  end;
  inherited;
end;

//鼠標稱出開始淡出
procedure TAALinkLabel.CMMouseLeave(var Message: TMessage);
begin
  if Enabled then
  begin
    if HotLink.Fade then
    begin
      FadeStyle := fsOut;
    end else
      Progress := 0;
    FMouseIn := False;
  end;
  inherited;
end;

//點擊控件
procedure TAALinkLabel.Click;
var
  Wnd: THandle;
begin
  if HotLink.URL <> EmptyStr then
  begin
    if Parent is TForm then
      Wnd := Parent.Handle
    else
      Wnd := 0;               //NULL;
    ShellExecute(Wnd, nil, PChar(HotLink.URL), nil, nil, SW_SHOWNORMAL);
  end;
  inherited;
end;

//屬性已裝載
procedure TAALinkLabel.LoadedEx;
begin
  inherited;
  Reset;
end;

//設(shè)置淡入淡出進度
procedure TAALinkLabel.SetProgress(const Value: TProgress);
begin
  if FProgress <> Value then
  begin
    FProgress := Value;
    Blend(BlendBmp, MemBmp, HotBmp, Progress);
    Paint;
  end;
end;

//設(shè)置啟用
procedure TAALinkLabel.SetEnabled(Value: Boolean);
begin
  inherited;
  if not Value then
  begin
    FadeStyle := fsNone;
    Progress := 0;
  end;
end;

//設(shè)置淡入淡出
procedure TAALinkLabel.SetFadeStyle(const Value: TFadeStyle);
begin
  if FFadeStyle <> Value then
  begin
    FFadeStyle := Value;
    FadeTimer.Enabled := FFadeStyle <> fsNone;
  end;
end;

//設(shè)置鏈接參數(shù)
procedure TAALinkLabel.SetHotLink(const Value: THotLink);
begin
  FHotLink.Assign(Value);
end;

{ TAAText }

//--------------------------------------------------------//
//平滑特效超鏈接標簽                                      //
//--------------------------------------------------------//

//調(diào)整尺寸
procedure TAAText.CalcSize;
var
  i, j: Integer;
  DispLines: TStrings;
  WrapLines: TStrings;
  CurrText: string;
  CurrAlign: TAlignment;
  TextWidth: Integer;
  TextHeight: Integer;
  AWidth, AHeight: Integer;
  xFree, yFree: Boolean;
  MaxCol: Integer;
begin
  BeginUpdate;
  DispLines := nil;
  WrapLines := nil;
  try
    DispLines := TStringList.Create; //臨時文本
    WrapLines := TStringList.Create;
    with FText do
    begin
      xFree := not WordWrap and AutoSize and (Align in [alNone, alLeft, alRight]);
      yFree := AutoSize and (Align in [alNone, alTop, alBottom]);
      if xFree then AWidth := 0
      else AWidth := ClientWidth;
      if yFree then AHeight := 0
      else AHeight := ClientHeight;
      if xFree or yFree then
      begin
        DispLines.Clear;
        DispLines.AddStrings(Lines);
        AAFont.Canvas := Canvas;
        AAFont.Effect.Assign(FText.FontEffect);
        Canvas.Font.Assign(Font);
        for i := 0 to DispLines.Count - 1 do
        begin
          CurrText := DispLines[i]; //當(dāng)前處理字符串
          if LabelEffect = leOnlyALine then
          begin
            Canvas.Font.Assign(Font);
            AAFont.Effect.Assign(FText.FontEffect);
          end;
          Fonts.Check(CurrText, Canvas.Font, AAFont.Effect); //檢查字體標簽
          Labels.Check(CurrText, CurrAlign); //檢查用戶標簽
          TextWidth := AAFont.TextWidth(CurrText);
          if WordWrap and (TextWidth > AWidth) then //自動換行
          begin
            MaxCol := AWidth * Length(CurrText) div TextWidth;
            while AAFont.TextWidth(Copy(CurrText, 1, MaxCol)) > AWidth do
              Dec(MaxCol);
            WrapText(CurrText, WrapLines, MaxCol);
          end else if CurrText <> '' then
            WrapLines.Text := CurrText
          else
            WrapLines.Text := ' ';
          if xFree and (TextWidth > AWidth) then //確定寬度
          begin
            AWidth := TextWidth;
          end;
          if yFree then       //確定高度
          begin
            for j := 0 to WrapLines.Count - 1 do
            begin
              CurrText := WrapLines[j];
              TextHeight := AAFont.TextHeight(CurrText + ' ');
              Inc(AHeight, TextHeight);
              if (i < DispLines.Count - 1) or (j < WrapLines.Count - 1) then
                Inc(AHeight, Round(TextHeight * RowPitch / 100));
            end;
          end;
        end;
        if xFree then ClientWidth := AWidth + 2 * Border;
        if yFree then ClientHeight := AHeight + 2 * Border;
      end;
    end;
  finally
    DispLines.Free;
    WrapLines.Free;
    EndUpdate;
  end;
end;

//創(chuàng)建
constructor TAAText.Create(AOwner: TComponent);
begin
  inherited;
  ControlStyle := ControlStyle + [csReplicatable];
  FText := TTextParam.Create(Self, OnLabelChanged);
  TextBmp := TBitmap.Create;
  TextBmp.PixelFormat := pf24bit;
  Width := 46;
  Height := 12;
end;

//創(chuàng)建顯示文本
procedure TAAText.CreateText;
begin
  CalcSize;
  TextBmp.Canvas.Brush.Color := Color;
  TextBmp.Canvas.Brush.Style := bsSolid;
  TextBmp.Width := ClientWidth;
  TextBmp.Height := ClientHeight;
  if FText.Transparent then     //透明
  begin
    CopyParentImage(TextBmp.Canvas); //復(fù)制父控件畫布
  end else if not FText.IsBackEmpty then
  begin                   //繪制背景圖
    DrawBackGround(TextBmp.Canvas, Rect(0, 0, TextBmp.Width, TextBmp.Height),
      FText.BackGround.Graphic, FText.BackGroundMode);
  end else
  begin                   //填充背景色
    TextBmp.Canvas.FillRect(ClientRect);
  end;
  TextBmp.Canvas.Brush.Style := bsClear;
  DrawCanvas(TextBmp.Canvas);
end;

//釋放
destructor TAAText.Destroy;
begin
  TextBmp.Free;
  FText.Free;
  inherited;
end;

//繪制
procedure TAAText.DrawCanvas(ACanvas: TCanvas);
var
  i, j: Integer;
  DispLines: TStrings;
  WrapLines: TStrings;
  CurrText: string;
  CurrAlign: TAlignment;
  x, y: Integer;
  TextWidth: Integer;
  TextHeight: Integer;
  MaxCol: Integer;
begin
  BeginUpdate;
  DispLines := nil;
  WrapLines := nil;
  try
    DispLines := TStringList.Create; //臨時文本
    WrapLines := TStringList.Create;
    with FText do
    begin
      DispLines.AddStrings(Lines);
      ACanvas.Brush.Color := Color;
      ACanvas.Brush.Style := bsClear;
      ACanvas.Font.Assign(Font);
      AAFont.Canvas := ACanvas;
      AAFont.Effect.Assign(FText.FontEffect);
      CurrAlign := Alignment; //默認對齊方式
      y := Border;
      for i := 0 to DispLines.Count - 1 do
      begin
        if y > ClientHeight - Border then
          Break;
        CurrText := DispLines[i]; //當(dāng)前處理字符串
        if LabelEffect = leOnlyALine then
        begin
          ACanvas.Font.Assign(Font);
          AAFont.Effect.Assign(FText.FontEffect);
          CurrAlign := Alignment;
        end;
        Fonts.Check(CurrText, ACanvas.Font, AAFont.Effect); //檢查字體標簽
        Labels.Check(CurrText, CurrAlign); //檢查用戶標簽
        TextWidth := AAFont.TextWidth(CurrText);
        if WordWrap and (TextWidth > ClientWidth - 2 * Border) then //自動換行
        begin
          MaxCol := (ClientWidth - 2 * Border) * Length(CurrText) div TextWidth;
          while AAFont.TextWidth(Copy(CurrText, 1, MaxCol)) > ClientWidth - 2
            * Border do
            Dec(MaxCol);
          WrapText(CurrText, WrapLines, MaxCol);
        end else if CurrText <> '' then
          WrapLines.Text := CurrText
        else
          WrapLines.Text := ' ';
        for j := 0 to WrapLines.Count - 1 do
        begin
          CurrText := WrapLines[j];
          TextHeight := AAFont.TextHeight(CurrText + ' ');
          TextWidth := AAFont.TextWidth(CurrText);
          case CurrAlign of   //對齊方式
            taLeftJustify: x := Border;
            taCenter: x := (ClientWidth - TextWidth) div 2;
            taRightJustify: x := ClientWidth - Border - TextWidth;
          else x := 0;
          end;
          AAFont.TextOut(x, y, CurrText);
          y := y + Round(TextHeight * (1 + RowPitch / 100));
        end;
      end;
      AAFont.Effect.Assign(FText.FontEffect);
    end;
  finally
    DispLines.Free;
    WrapLines.Free;
    EndUpdate;
  end;
end;

//控件屬性已裝載
procedure TAAText.LoadedEx;
begin
  inherited;
  Reset;
end;

//繪制畫布
procedure TAAText.PaintCanvas;
begin
  if Text.Transparent then
    TransparentPaint    //透明
  else
    Bitblt(Canvas.Handle, 0, 0, Width, Height, TextBmp.Canvas.Handle, 0, 0,
      SRCCOPY);
end;

//復(fù)位
procedure TAAText.Reset;
begin
  if not Text.Transparent then
    CreateText;
  inherited;
end;

//設(shè)置文本
procedure TAAText.SetText(const Value: TTextParam);
begin
  Text.Assign(Value);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区国产| 人人狠狠综合久久亚洲| 成人国产在线观看| 中文字幕一区av| 欧美综合久久久| 丝瓜av网站精品一区二区| 日韩女优av电影| 国产999精品久久久久久绿帽| 国产精品久久久久久久久图文区| 91丝袜高跟美女视频| 亚洲一区二区四区蜜桃| 制服丝袜激情欧洲亚洲| 国产精品91一区二区| 中文字幕第一区二区| 色婷婷精品久久二区二区蜜臂av| 亚洲成人综合在线| 精品成人在线观看| 成人精品国产一区二区4080| 亚洲午夜三级在线| 欧美videos中文字幕| jizz一区二区| 日韩电影在线一区| 日本一区二区高清| 欧美电影一区二区| 成人午夜大片免费观看| 亚洲图片自拍偷拍| 国产午夜精品一区二区三区四区| 在线精品视频免费播放| 国产原创一区二区三区| 一区二区高清免费观看影视大全 | 亚洲国产精品自拍| 日韩精品一区二区三区中文精品 | 亚洲精品国产a久久久久久| 91精品国产综合久久久久| 成人激情文学综合网| 久久精品国产99| 亚洲国产毛片aaaaa无费看| 欧美激情中文字幕| 制服丝袜av成人在线看| 成人97人人超碰人人99| 老司机午夜精品99久久| 亚洲一区二三区| 日本一区二区三区四区| 日韩一区二区三免费高清| av不卡在线播放| 国产在线精品一区二区不卡了| 一区二区欧美精品| 国产精品天美传媒沈樵| 精品少妇一区二区三区视频免付费 | 精品中文av资源站在线观看| 一区二区三区日本| 中文字幕欧美日韩一区| 欧美xxxxxxxx| 欧美一区二区久久| 精品视频一区三区九区| 97久久精品人人做人人爽| 国内欧美视频一区二区| 日韩中文字幕一区二区三区| 亚洲人一二三区| 国产精品视频看| 久久久www免费人成精品| 日韩午夜激情av| 欧美一区二区三区男人的天堂| 在线视频你懂得一区| 91在线观看美女| av一二三不卡影片| av成人免费在线| 成人国产精品视频| 99久久99久久久精品齐齐| 国产成人av电影在线播放| 极品少妇一区二区| 国产在线不卡一区| 国产一区在线观看视频| 国产一区二区影院| 国产一区二区h| 国产成人精品三级麻豆| 东方aⅴ免费观看久久av| 国产成人精品一区二区三区网站观看| 极品瑜伽女神91| 国产一区二区三区日韩| 国产精品伊人色| 成人动漫av在线| 91免费看片在线观看| 91麻豆自制传媒国产之光| 欧美一级日韩一级| 欧美一区二区三区系列电影| 欧美一区二区二区| 精品精品国产高清a毛片牛牛| 26uuu另类欧美| 国产精品国产三级国产aⅴ无密码| 亚洲欧美区自拍先锋| 亚洲在线一区二区三区| 日韩精品欧美成人高清一区二区| 美国av一区二区| 国产乱码精品一区二区三| 99久久国产综合精品麻豆| 欧美三级一区二区| 精品乱人伦小说| 国产精品国产自产拍高清av| 亚洲激情网站免费观看| 首页欧美精品中文字幕| 国精品**一区二区三区在线蜜桃| 成人免费视频视频| 欧美丝袜丝交足nylons| 欧美sm极限捆绑bd| 亚洲精品一卡二卡| 久久精品理论片| 91在线小视频| 日韩欧美国产一区二区三区 | 亚洲图片欧美综合| 国产精品一区专区| 欧美视频第二页| 久久蜜桃av一区二区天堂| 亚洲激情av在线| 国产自产高清不卡| 欧美亚洲精品一区| 国产农村妇女毛片精品久久麻豆| 亚洲精品免费在线| 国产精品综合网| 欧美视频一区二区三区在线观看 | 欧美一区二区三区免费大片| 中文字幕欧美激情一区| 日韩av中文字幕一区二区三区| 高清在线不卡av| 日韩一级免费一区| 亚洲欧美日韩在线不卡| 国产在线不卡一卡二卡三卡四卡| 日本国产一区二区| 久久中文字幕电影| 亚洲午夜电影在线观看| 成人综合在线观看| 日韩色视频在线观看| 亚洲一区二区三区四区在线免费观看| 国产一区二区福利视频| 制服丝袜亚洲网站| 亚洲一区二区三区爽爽爽爽爽| 国产一区啦啦啦在线观看| 91精品国产综合久久精品麻豆| 最新不卡av在线| 国产宾馆实践打屁股91| 日韩亚洲欧美中文三级| 亚洲一卡二卡三卡四卡五卡| av在线播放不卡| 中文字幕精品在线不卡| 精品在线播放免费| 欧美精品在线一区二区| 亚洲黄网站在线观看| 99re免费视频精品全部| 国产欧美一区二区精品仙草咪| 九九精品视频在线看| 91精品国产乱| 午夜婷婷国产麻豆精品| 欧美三区在线视频| 亚洲成va人在线观看| 日本高清免费不卡视频| 亚洲人成网站影音先锋播放| 国产成人亚洲综合a∨婷婷图片| 欧美成人乱码一区二区三区| 蜜桃精品视频在线| 日韩一区二区三区免费观看| 高清国产一区二区| 久久综合给合久久狠狠狠97色69| 激情欧美一区二区| 精品久久久久久久人人人人传媒| 男男成人高潮片免费网站| 欧美巨大另类极品videosbest| 亚洲一二三四区| 欧美日韩中字一区| 亚洲成人激情综合网| 欧美日韩国产乱码电影| 日韩中文字幕av电影| 日韩一区二区免费在线电影| 麻豆精品精品国产自在97香蕉| 日韩精品在线网站| 国产精品一区二区91| 日本一区二区三区四区| 99国产精品视频免费观看| 亚洲男人的天堂在线aⅴ视频| 色吊一区二区三区| 亚洲图片欧美综合| 日韩一级片在线播放| 国产露脸91国语对白| 中文字幕成人av| 色婷婷综合五月| 三级影片在线观看欧美日韩一区二区| 91精品一区二区三区久久久久久 | 成人高清在线视频| 亚洲人xxxx| 7777女厕盗摄久久久| 国产一区二区三区免费看| 国产精品久久久久久久久免费丝袜| 99久久精品99国产精品 | 精品久久国产老人久久综合| 韩国理伦片一区二区三区在线播放| 国产亲近乱来精品视频| 色婷婷久久久久swag精品 | 国产精品一区二区黑丝| 亚洲精品综合在线| 日韩一级大片在线| 成人av在线看|