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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tntbuttons.pas

?? TNT Components Source
?? PAS
?? 第 1 頁 / 共 3 頁
字號:
    end;
  except
    on E: EAbortPaint do
      ;
    else
      raise;
  end;
end;

function TTntSpeedButton.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

{$IFDEF COMPILER_10_UP}
type
  TAccessGraphicControl = class(TGraphicControl);
{$ENDIF}

procedure TTntSpeedButton.ActionChange(Sender: TObject; CheckDefaults: Boolean);
{$IFDEF COMPILER_10_UP}
// bug fix for VCL where ImageIndex on Action ALWAYS overrides the Glyph.
type
  CallActionChange = procedure(Sender: TObject; CheckDefaults: Boolean) of object;
var
  M: TMethod;
{$ENDIF}
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  {$IFNDEF COMPILER_10_UP}
  inherited;
  {$ELSE}
  // call TGraphicControl.ActionChange (bypass TSpeedButton.ActionChange)
  M.Code := @TAccessGraphicControl.ActionChange;
  M.Data := Self;
  CallActionChange(M)(Sender, CheckDefaults);
  // call Delphi2005's TSpeedButton.ActionChange
  if Sender is TCustomAction{TNT-ALLOW TCustomAction} then
    with TCustomAction{TNT-ALLOW TCustomAction}(Sender) do
    begin
      if CheckDefaults or (Self.GroupIndex = 0) then
        Self.GroupIndex := GroupIndex;
      { Copy image from action's imagelist }
      if (Glyph.Empty) and (ActionList <> nil) and (ActionList.Images <> nil) and
        (ImageIndex >= 0) and (ImageIndex < ActionList.Images.Count) then
        CopyImage(ActionList.Images, ImageIndex);
    end;
  {$ENDIF}
end;

{ TTntBitBtn }

procedure TTntBitBtn.CreateWindowHandle(const Params: TCreateParams);
begin
  CreateUnicodeHandle(Self, Params, 'BUTTON');
end;

procedure TTntBitBtn.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

function TTntBitBtn.IsCaptionStored: Boolean;
var
  BaseClass: TClass;
  PropInfo: PPropInfo;
begin
  Assert(Self is TButton{TNT-ALLOW TButton});
  Assert(Self is TBitBtn{TNT-ALLOW TBitBtn});
  if Kind = bkCustom then
    // don't use TBitBtn, it's broken for Kind <> bkCustom
    BaseClass := TButton{TNT-ALLOW TButton}
  else begin
    //TBitBtn has it's own storage specifier, based upon the button kind
    BaseClass := TBitBtn{TNT-ALLOW TBitBtn};
  end;
  PropInfo := GetPropInfo(BaseClass, 'Caption');
  if PropInfo = nil then
    raise EPropertyError.CreateResFmt(PResStringRec(@SUnknownProperty), ['Caption']);
  Result := IsStoredProp(Self, PropInfo);
end;

function TTntBitBtn.GetCaption: TWideCaption;
begin
  Result := TntControl_GetText(Self)
end;

procedure TTntBitBtn.SetCaption(const Value: TWideCaption);
begin
  TntControl_SetText(Self, Value);
end;

function TTntBitBtn.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self)
end;

function TTntBitBtn.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self)
end;

procedure TTntBitBtn.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntBitBtn.CMDialogChar(var Message: TCMDialogChar);
begin
  TntButton_CMDialogChar(Self, Message);
end;

function TTntBitBtn.GetButtonGlyph: Pointer;
begin
  Result := THackBitBtn(Self).FGlyph;
end;

procedure TTntBitBtn.UpdateInternalGlyphList;
begin
  FPaintInherited := True;
  try
    Repaint;
  finally
    FPaintInherited := False;
  end;
  Invalidate;
  raise EAbortPaint.Create('');
end;

procedure TTntBitBtn.CNDrawItem(var Message: TWMDrawItem);
begin
  if FPaintInherited then
    inherited
  else
    DrawItem(Message.DrawItemStruct^);
end;

procedure TTntBitBtn.DrawItem(const DrawItemStruct: TDrawItemStruct);
var
  IsDown, IsDefault: Boolean;
  State: TButtonState;
  R: TRect;
  Flags: Longint;
  FCanvas: TCanvas;
  IsFocused: Boolean;
  {$IFDEF THEME_7_UP}
  Details: TThemedElementDetails;
  Button: TThemedButton;
  Offset: TPoint;
  {$ENDIF}
begin
  try
    FCanvas := THackBitBtn(Self).FCanvas;
    IsFocused := THackBitBtn(Self).IsFocused;
    FCanvas.Handle := DrawItemStruct.hDC;
    R := ClientRect;

    with DrawItemStruct do
    begin
      FCanvas.Handle := hDC;
      FCanvas.Font := Self.Font;
      IsDown := itemState and ODS_SELECTED <> 0;
      IsDefault := itemState and ODS_FOCUS <> 0;

      if not Enabled then State := bsDisabled
      else if IsDown then State := bsDown
      else State := bsUp;
    end;

    {$IFDEF THEME_7_UP}
    if ThemeServices.ThemesEnabled then
    begin
      if not Enabled then
        Button := tbPushButtonDisabled
      else
        if IsDown then
          Button := tbPushButtonPressed
        else
          if FMouseInControl then
            Button := tbPushButtonHot
          else
            if IsFocused or IsDefault then
              Button := tbPushButtonDefaulted
            else
              Button := tbPushButtonNormal;

      Details := ThemeServices.GetElementDetails(Button);
      // Parent background.
      ThemeServices.DrawParentBackground(Handle, DrawItemStruct.hDC, @Details, True);
      // Button shape.
      ThemeServices.DrawElement(DrawItemStruct.hDC, Details, DrawItemStruct.rcItem);
      R := ThemeServices.ContentRect(FCanvas.Handle, Details, DrawItemStruct.rcItem);

      if Button = tbPushButtonPressed then
        Offset := Point(1, 0)
      else
        Offset := Point(0, 0);
      TButtonGlyph_Draw(Self, FCanvas, R, Offset, Caption, Layout, Margin, Spacing, State, False,
        DrawTextBiDiModeFlags(0) {$IFDEF COMPILER_7_UP}, Self.WordWrap {$ENDIF});

      if IsFocused and IsDefault then
      begin
        FCanvas.Pen.Color := clWindowFrame;
        FCanvas.Brush.Color := clBtnFace;
        DrawFocusRect(FCanvas.Handle, R);
      end;
    end
    else
    {$ENDIF}
    begin
      R := ClientRect;

      Flags := DFCS_BUTTONPUSH or DFCS_ADJUSTRECT;
      if IsDown then Flags := Flags or DFCS_PUSHED;
      if DrawItemStruct.itemState and ODS_DISABLED <> 0 then
        Flags := Flags or DFCS_INACTIVE;

      { DrawFrameControl doesn't allow for drawing a button as the
          default button, so it must be done here. }
      if IsFocused or IsDefault then
      begin
        FCanvas.Pen.Color := clWindowFrame;
        FCanvas.Pen.Width := 1;
        FCanvas.Brush.Style := bsClear;
        FCanvas.Rectangle(R.Left, R.Top, R.Right, R.Bottom);

        { DrawFrameControl must draw within this border }
        InflateRect(R, -1, -1);
      end;

      { DrawFrameControl does not draw a pressed button correctly }
      if IsDown then
      begin
        FCanvas.Pen.Color := clBtnShadow;
        FCanvas.Pen.Width := 1;
        FCanvas.Brush.Color := clBtnFace;
        FCanvas.Rectangle(R.Left, R.Top, R.Right, R.Bottom);
        InflateRect(R, -1, -1);
      end
      else
        DrawFrameControl(DrawItemStruct.hDC, R, DFC_BUTTON, Flags);

      if IsFocused then
      begin
        R := ClientRect;
        InflateRect(R, -1, -1);
      end;

      FCanvas.Font := Self.Font;
      if IsDown then
        OffsetRect(R, 1, 1);

      TButtonGlyph_Draw(Self, FCanvas, R, Point(0, 0), Caption, Layout, Margin, Spacing, State,
        False, DrawTextBiDiModeFlags(0) {$IFDEF COMPILER_7_UP}, Self.WordWrap {$ENDIF});

      if IsFocused and IsDefault then
      begin
        R := ClientRect;
        InflateRect(R, -4, -4);
        FCanvas.Pen.Color := clWindowFrame;
        FCanvas.Brush.Color := clBtnFace;
        DrawFocusRect(FCanvas.Handle, R);
      end;
    end;
    FCanvas.Handle := 0;
  except
    on E: EAbortPaint do
      ;
    else
      raise;
  end;
end;

procedure TTntBitBtn.CMMouseEnter(var Message: TMessage);
begin
  FMouseInControl := True;
  inherited;
end;

procedure TTntBitBtn.CMMouseLeave(var Message: TMessage);
begin
  FMouseInControl := False;
  inherited;
end;

{$IFDEF COMPILER_10_UP}
type
  TAccessButton = class(TButton{TNT-ALLOW TButton});
{$ENDIF}

procedure TTntBitBtn.ActionChange(Sender: TObject; CheckDefaults: Boolean);
{$IFDEF COMPILER_10_UP}
// bug fix for VCL where ImageIndex on Action ALWAYS overrides the Glyph.
type
  CallActionChange = procedure(Sender: TObject; CheckDefaults: Boolean) of object;
var
  M: TMethod;
{$ENDIF}
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  {$IFNDEF COMPILER_10_UP}
  inherited;
  {$ELSE}
  // call TButton.ActionChange (bypass TBitBtn.ActionChange)
  M.Code := @TAccessButton.ActionChange;
  M.Data := Self;
  CallActionChange(M)(Sender, CheckDefaults);
  // call Delphi2005's TBitBtn.ActionChange
  if Sender is TCustomAction{TNT-ALLOW TCustomAction} then
    with TCustomAction{TNT-ALLOW TCustomAction}(Sender) do
    begin
      { Copy image from action's imagelist }
      if (Glyph.Empty) and (ActionList <> nil) and (ActionList.Images <> nil) and
        (ImageIndex >= 0) and (ImageIndex < ActionList.Images.Count) then
        CopyImage(ActionList.Images, ImageIndex);
    end;
  {$ENDIF}
end;

function TTntBitBtn.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中文字幕精品| 日韩久久久精品| 色88888久久久久久影院野外| 91网址在线看| 在线看一区二区| 色欧美片视频在线观看在线视频| 国产精品亚洲一区二区三区在线| 懂色av噜噜一区二区三区av | 亚洲激情五月婷婷| 天堂精品中文字幕在线| 免费观看一级特黄欧美大片| 极品尤物av久久免费看| 成人美女视频在线观看18| 成人伦理片在线| 欧洲一区二区av| 2021国产精品久久精品| 中文字幕综合网| 一区二区欧美精品| 免费在线视频一区| 91女神在线视频| 欧美精品一区二区高清在线观看 | 日韩电影在线一区二区| 韩国理伦片一区二区三区在线播放| av电影在线观看一区| 无吗不卡中文字幕| 国产在线精品一区二区三区不卡 | 国内成人免费视频| 在线播放日韩导航| 综合婷婷亚洲小说| 日韩综合一区二区| 91亚洲国产成人精品一区二三 | 久久综合九色综合欧美98| 污片在线观看一区二区| 成人亚洲一区二区一| 欧美电影免费观看高清完整版在线| 久久久午夜电影| 日本欧美肥老太交大片| 在线观看亚洲专区| 国产精品美女久久久久久久久久久| 亚洲人成亚洲人成在线观看图片 | 精品视频免费看| 亚洲天堂中文字幕| 91蜜桃网址入口| 中文字幕在线一区| 国产酒店精品激情| 国产日韩亚洲欧美综合| 久久97超碰色| 久久夜色精品一区| 大陆成人av片| 亚洲欧洲美洲综合色网| 韩国理伦片一区二区三区在线播放| 日韩一区二区三区在线观看| 亚洲欧美另类小说| 51久久夜色精品国产麻豆| 一个色综合av| 91麻豆精品国产91久久久更新时间| 亚洲成人av电影在线| 欧美一区二区精品在线| 国产一区二区三区免费| 国产欧美中文在线| 在线观看日韩av先锋影音电影院| 亚洲一级在线观看| 欧美成人猛片aaaaaaa| 99久久伊人久久99| 午夜精品一区在线观看| 69堂成人精品免费视频| 国产曰批免费观看久久久| 亚洲天堂网中文字| 欧美一二三四区在线| 国产精品白丝jk黑袜喷水| 国产精品网站在线| 色婷婷综合中文久久一本| 日韩成人一区二区| 中文在线资源观看网站视频免费不卡| 丁香六月综合激情| 亚洲综合色噜噜狠狠| 久久久91精品国产一区二区精品| 成人av网址在线观看| 亚洲大片在线观看| 日韩免费电影网站| 欧美在线不卡一区| 国产剧情在线观看一区二区| 亚洲综合成人网| 狠狠色丁香久久婷婷综| 亚洲一区二区三区四区在线| 国产人伦精品一区二区| 欧美成人bangbros| 欧美群妇大交群的观看方式| 99久久精品免费精品国产| 国产精品自在欧美一区| 蜜臀av一区二区在线观看 | 亚洲18影院在线观看| 亚洲欧美一区二区三区国产精品| 亚洲精品在线观看网站| 日韩视频国产视频| 91精品国产色综合久久ai换脸| 色婷婷久久久亚洲一区二区三区| 国产成人亚洲精品青草天美| 国产一区二区三区蝌蚪| 久久丁香综合五月国产三级网站| 奇米色一区二区三区四区| 日韩av中文字幕一区二区| 午夜av区久久| 免费观看日韩电影| 精品亚洲成a人| 国产成人亚洲综合a∨猫咪 | 精品影视av免费| 韩国成人在线视频| 国产一区二区中文字幕| 国产精品一区二区果冻传媒| 亚洲超碰精品一区二区| 久久99热这里只有精品| 精品一区二区免费在线观看| 国产伦精一区二区三区| 成人激情黄色小说| 色悠悠亚洲一区二区| 欧美日韩国产片| 2023国产一二三区日本精品2022| 国产日韩欧美a| 亚洲一区二三区| 精品一二三四在线| av电影在线观看一区| 欧美精品日韩一本| 国产欧美精品在线观看| 国产精品免费丝袜| 视频在线在亚洲| 高清不卡在线观看| 欧美另类高清zo欧美| 精品国产123| 亚洲精品成人少妇| 国产电影一区在线| 福利视频网站一区二区三区| 欧美色倩网站大全免费| 国产精品乱码人人做人人爱 | 欧美午夜视频网站| 精品裸体舞一区二区三区| 成人免费在线播放视频| 另类小说一区二区三区| 欧美中文字幕久久| 中文字幕日韩av资源站| 捆绑调教美女网站视频一区| 91影视在线播放| 欧美国产日产图区| 国产综合久久久久久久久久久久| 99re8在线精品视频免费播放| 日韩欧美精品在线| 亚洲欧美一区二区三区久本道91| 天堂午夜影视日韩欧美一区二区| 国产.精品.日韩.另类.中文.在线.播放| 欧美麻豆精品久久久久久| 亚洲无人区一区| 欧美亚洲一区三区| 亚洲高清免费观看 | 色噜噜狠狠色综合中国| 亚洲精品在线免费播放| 免费在线成人网| 精品国产乱码久久久久久牛牛| 日韩主播视频在线| 日韩丝袜美女视频| 国产精品一二三四五| 国产欧美精品日韩区二区麻豆天美| 极品美女销魂一区二区三区 | 日本道色综合久久| 亚洲高清视频的网址| 777xxx欧美| 日日摸夜夜添夜夜添精品视频| 91精品国产手机| 不卡av在线网| 日韩国产欧美三级| 久久精品视频免费| 91麻豆福利精品推荐| 日韩av一区二| 国产精品美女www爽爽爽| 欧美午夜免费电影| 国产麻豆视频精品| 亚洲精品中文字幕乱码三区 | 91亚洲国产成人精品一区二区三 | 欧美一区二区精品在线| 国产一区三区三区| 亚洲欧洲一区二区三区| 69久久99精品久久久久婷婷| 国产呦萝稀缺另类资源| |精品福利一区二区三区| 欧美一级夜夜爽| 91蜜桃在线免费视频| 国产一区美女在线| 日韩高清在线一区| 亚洲蜜臀av乱码久久精品| 日韩精品一区二区三区swag| 久久99国产精品麻豆| 亚洲一区av在线| 亚洲欧美综合另类在线卡通| 日韩视频在线一区二区| 欧美中文字幕不卡| 粉嫩av一区二区三区在线播放| 图片区小说区区亚洲影院| 亚洲人精品一区| 欧美激情一区二区| 国产精品嫩草影院com| 久久香蕉国产线看观看99|