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

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

?? tb2item.pas

?? Delphi的skin.v3.84皮膚美化包 可以使delphi的界面很美觀
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
  published
    property Images: TCustomImageList read GetImages write SetImages;
    property Items: TTBRootItem read FItem;
    property LinkSubitems: TTBCustomItem read GetLinkSubitems write SetLinkSubitems;
    property Options: TTBItemOptions read GetOptions write SetOptions default [];
  end;

  TTBCustomImageList = class(TImageList)
  private
    FCheckedImages: TCustomImageList;
    FCheckedImagesChangeLink: TChangeLink;
    FDisabledImages: TCustomImageList;
    FDisabledImagesChangeLink: TChangeLink;
    FHotImages: TCustomImageList;
    FHotImagesChangeLink: TChangeLink;
    FImagesBitmap: TBitmap;
    FImagesBitmapMaskColor: TColor;
    procedure ChangeImages(var AImageList: TCustomImageList;
      Value: TCustomImageList; AChangeLink: TChangeLink);
    procedure ImageListChanged(Sender: TObject);
    procedure ImagesBitmapChanged(Sender: TObject);
    procedure SetCheckedImages(Value: TCustomImageList);
    procedure SetDisabledImages(Value: TCustomImageList);
    procedure SetHotImages(Value: TCustomImageList);
    procedure SetImagesBitmap(Value: TBitmap);
    procedure SetImagesBitmapMaskColor(Value: TColor);
  protected
    procedure DefineProperties(Filer: TFiler); override;
    procedure Notification(AComponent: TComponent; Operation: TOperation); override;
    property CheckedImages: TCustomImageList read FCheckedImages write SetCheckedImages;
    property DisabledImages: TCustomImageList read FDisabledImages write SetDisabledImages;
    property HotImages: TCustomImageList read FHotImages write SetHotImages;
    property ImagesBitmap: TBitmap read FImagesBitmap write SetImagesBitmap;
    property ImagesBitmapMaskColor: TColor read FImagesBitmapMaskColor
      write SetImagesBitmapMaskColor default clFuchsia;
  public
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
    procedure DrawState(Canvas: TCanvas; X, Y, Index: Integer;
      Enabled, Selected, Checked: Boolean); virtual;
  end;

  TTBImageList = class(TTBCustomImageList)
  published
    property CheckedImages;
    property DisabledImages;
    property HotImages;
    property ImagesBitmap;
    property ImagesBitmapMaskColor;
  end;

const
  {$IFNDEF TB2K_USE_STRICT_O2K_MENU_STYLE}
  tbMenuBkColor = clMenu;
  tbMenuTextColor = clMenuText;
  {$ELSE}
  tbMenuBkColor = clBtnFace;
  tbMenuTextColor = clBtnText;
  {$ENDIF}

  tbMenuVerticalMargin = 4;
  tbMenuImageTextSpace = 1;
  tbMenuLeftTextMargin = 2;
  tbMenuRightTextMargin = 3;

  tbMenuSeparatorOffset = 12;

  tbMenuScrollArrowHeight = 19;

  tbDropdownArrowWidth = 8;
  tbDropdownArrowMargin = 3;
  tbDropdownComboArrowWidth = 11;
  tbDropdownComboMargin = 2;

  tbLineSpacing = 6;
  tbLineSepOffset = 1;
  tbDockedLineSepOffset = 4;

  WM_TB2K_CLICKITEM = WM_USER + $100;

procedure TBInitToolbarSystemFont;

var
  ToolbarFont: TFont;


implementation

uses
  MMSYSTEM, TB2Consts, TB2Common, IMM, TB2Acc;

var
  LastPos: TPoint;

threadvar
  ClickWndRefCount: Integer;
  ClickWnd: HWND;
  ClickList: TList;

type
  TTBModalHandler = class
  private
    FCreatedWnd: Boolean;
    FInited: Boolean;
    FWnd: HWND;
    FRootPopup: TTBPopupWindow;
    procedure WndProc(var Msg: TMessage);
  public
    constructor Create(AExistingWnd: HWND);
    destructor Destroy; override;
    procedure Loop(const RootView: TTBView; const AMouseDown, AExecuteSelected,
      AFromMSAA, TrackRightButton: Boolean);
    property RootPopup: TTBPopupWindow read FRootPopup write FRootPopup;
    property Wnd: HWND read FWnd;
  end;

  PItemChangedNotificationData = ^TItemChangedNotificationData;
  TItemChangedNotificationData = record
    Proc: TTBItemChangedProc;
    RefCount: Integer;
  end;

  TComponentAccess = class(TComponent);
  TControlAccess = class(TControl);

const
  ViewTimerBaseID = 9000;
  MaxGroupLevel = 10;


{ Misc. }

procedure DestroyClickWnd;
begin
  if ClickWnd <> 0 then begin
    {$IFDEF JR_D6}Classes.{$ENDIF} DeallocateHWnd(ClickWnd);
    ClickWnd := 0;
  end;
  FreeAndNil(ClickList);
end;

procedure ReferenceClickWnd;
begin
  Inc(ClickWndRefCount);
end;

procedure ReleaseClickWnd;
begin
  Dec(ClickWndRefCount);
  if ClickWndRefCount = 0 then
    DestroyClickWnd;
end;

procedure QueueClick(const AItem: TObject; const AArg: Integer);
{ Adds an item to ClickList and posts a message to handle it. AItem must be
  either a TTBCustomItem or TTBItemViewer. }
var
  I: Integer;
begin
  if ClickWnd = 0 then
    ClickWnd := {$IFDEF JR_D6}Classes.{$ENDIF} AllocateHWnd(TTBCustomItem.ClickWndProc);
  if ClickList = nil then
    ClickList := TList.Create;

  { Add a new item to ClickList or replace an empty one }
  I := ClickList.IndexOf(nil);
  if I = -1 then
    I := ClickList.Add(AItem)
  else
    ClickList[I] := AItem;

  PostMessage(ClickWnd, WM_TB2K_CLICKITEM, AArg, I);
end;

procedure RemoveFromClickList(const AItem: TObject);
{ Any class that potentially calls QueueClick needs to call RemoveFromClickList
  before an instance is destroyed to ensure that any references to the
  instance still in ClickList are removed. }                                                                
var
  I: Integer;
begin
  if Assigned(ClickList) and Assigned(AItem) then
    for I := 0 to ClickList.Count-1 do
      if ClickList[I] = AItem then
        ClickList[I] := Pointer(1);
        { ^ The special value of Pointer(1) is assigned to the item instead of
          of nil because we want the index to stay reserved until the
          WM_TB2K_CLICKITEM message for the index is processed. We don't want
          the WM_TB2K_CLICKITEM message that's still in the queue to later
          refer to a different item; this would result in queued clicks being
          processed in the wrong order in a case like this:
            A.PostClick; B.PostClick; A.Free; C.PostClick;
          C's click would end up being processed before A's, because C would
          get A's index. }
end;

function ProcessDoneAction(const DoneActionData: TTBDoneActionData;
  const ReturnClickedItemOnly: Boolean): TTBCustomItem;
begin
  Result := nil;
  case DoneActionData.DoneAction of
    tbdaNone: ;
    tbdaClickItem: begin
        if DoneActionData.Sound and NeedToPlaySound('MenuCommand') then
          PlaySound('MenuCommand', 0, SND_ALIAS or SND_ASYNC or SND_NODEFAULT or SND_NOSTOP);
        Result := DoneActionData.ClickItem;
        if not ReturnClickedItemOnly then
          Result.PostClick;
      end;
    tbdaOpenSystemMenu: begin
        SendMessage(DoneActionData.Wnd, WM_SYSCOMMAND, SC_KEYMENU, DoneActionData.Key);
      end;
    tbdaHelpContext: begin
        { Based on code in TPopupList.WndProc: }
        if Assigned(Screen.ActiveForm) and
           (biHelp in Screen.ActiveForm.BorderIcons) then
          Application.HelpCommand(HELP_CONTEXTPOPUP, DoneActionData.ContextID)
        else
          Application.HelpContext(DoneActionData.ContextID);
      end;
  end;
end;


{ TTBItemDataArray routines }

procedure InsertIntoItemArray(var AItems: PTBItemDataArray;
  var AItemCount: Integer; NewIndex: Integer; AItem: TTBCustomItem);
begin
  ReallocMem(AItems, (AItemCount+1) * SizeOf(AItems[0]));
  if NewIndex < AItemCount then
    System.Move(AItems[NewIndex], AItems[NewIndex+1],
      (AItemCount-NewIndex) * SizeOf(AItems[0]));
  AItems[NewIndex].Item := AItem;
  Inc(AItemCount);
end;

procedure DeleteFromItemArray(var AItems: PTBItemDataArray;
  var AItemCount: Integer; Index: Integer);
begin
  Dec(AItemCount);
  if Index < AItemCount then
    System.Move(AItems[Index+1], AItems[Index],
      (AItemCount-Index) * SizeOf(AItems[0]));
  ReallocMem(AItems, AItemCount * SizeOf(AItems[0]));
end;

procedure InsertIntoViewerArray(var AItems: PTBItemViewerArray;
  var AItemCount: Integer; NewIndex: Integer; AItem: TTBItemViewer);
begin
  ReallocMem(AItems, (AItemCount+1) * SizeOf(AItems[0]));
  if NewIndex < AItemCount then
    System.Move(AItems[NewIndex], AItems[NewIndex+1],
      (AItemCount-NewIndex) * SizeOf(AItems[0]));
  AItems[NewIndex] := AItem;
  Inc(AItemCount);
end;

procedure DeleteFromViewerArray(var AItems: PTBItemViewerArray;
  var AItemCount: Integer; Index: Integer);
begin
  Dec(AItemCount);
  if Index < AItemCount then
    System.Move(AItems[Index+1], AItems[Index],
      (AItemCount-Index) * SizeOf(AItems[0]));
  ReallocMem(AItems, AItemCount * SizeOf(AItems[0]));
end;


{ TTBCustomItemActionLink }

procedure TTBCustomItemActionLink.AssignClient(AClient: TObject);
begin
  FClient := AClient as TTBCustomItem;
end;

{$IFDEF JR_D6}
function TTBCustomItemActionLink.IsAutoCheckLinked: Boolean;
begin
  Result := (FClient.AutoCheck = (Action as TCustomAction).AutoCheck);
end;
{$ENDIF}

function TTBCustomItemActionLink.IsCaptionLinked: Boolean;
begin
  Result := inherited IsCaptionLinked and
    (FClient.Caption = (Action as TCustomAction).Caption);
end;

function TTBCustomItemActionLink.IsCheckedLinked: Boolean;
begin
  Result := inherited IsCheckedLinked and
    (FClient.Checked = (Action as TCustomAction).Checked);
end;

function TTBCustomItemActionLink.IsEnabledLinked: Boolean;
begin
  Result := inherited IsEnabledLinked and
    (FClient.Enabled = (Action as TCustomAction).Enabled);
end;

function TTBCustomItemActionLink.IsHelpContextLinked: Boolean;
begin
  Result := inherited IsHelpContextLinked and
    (FClient.HelpContext = (Action as TCustomAction).HelpContext);
end;

function TTBCustomItemActionLink.IsHintLinked: Boolean;
begin
  Result := inherited IsHintLinked and
    (FClient.Hint = (Action as TCustomAction).Hint);
end;

function TTBCustomItemActionLink.IsImageIndexLinked: Boolean;
begin
  Result := inherited IsImageIndexLinked and
    (FClient.ImageIndex = (Action as TCustomAction).ImageIndex);
end;

function TTBCustomItemActionLink.IsShortCutLinked: Boolean;
begin
  Result := inherited IsShortCutLinked and
    (FClient.ShortCut = (Action as TCustomAction).ShortCut);
end;

function TTBCustomItemActionLink.IsVisibleLinked: Boolean;
begin
  Result := inherited IsVisibleLinked and
    (FClient.Visible = (Action as TCustomAction).Visible);
end;

function TTBCustomItemActionLink.IsOnExecuteLinked: Boolean;
begin
  Result := inherited IsOnExecuteLinked and
    MethodsEqual(TMethod(FClient.OnClick), TMethod(Action.OnExecute));
end;

{$IFDEF JR_D6}
procedure TTBCustomItemActionLink.SetAutoCheck(Value: Boolean);
begin
  if IsAutoCheckLinked then FClient.AutoCheck := Value;
end;
{$ENDIF}

procedure TTBCustomItemActionLink.SetCaption(const Value: string);
begin
  if IsCaptionLinked then FClient.Caption := Value;
end;

procedure TTBCustomItemActionLink.SetChecked(Value: Boolean);
begin
  if IsCheckedLinked then FClient.Checked := Value;
end;

procedure TTBCustomItemActionLink.SetEnabled(Value: Boolean);
begin
  if IsEnabledLinked then FClient.Enabled := Value;
end;

procedure TTBCustomItemActionLink.SetHelpContext(Value: THelpContext);
begin
  if IsHelpContextLinked then FClient.HelpContext := Value;
end;

procedure TTBCustomItemActionLink.SetHint(const Value: string);
begin
  if IsHintLinked then FClient.Hint := Value;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩久久一区| 色综合天天综合| 久久婷婷国产综合国色天香| 精品在线视频一区| 精品国产乱码久久久久久蜜臀 | 亚洲制服丝袜一区| 欧美日韩亚洲国产综合| 六月婷婷色综合| 久久精品夜色噜噜亚洲a∨| 波多野结衣一区二区三区| 亚洲猫色日本管| 欧美一区二区三区色| 国产一区 二区 三区一级| 亚洲私人黄色宅男| 欧美一区二区三区男人的天堂| 韩日精品视频一区| 亚洲人吸女人奶水| 日韩一区二区高清| eeuss鲁一区二区三区| 午夜精品久久久久久久久 | 国产欧美精品一区二区色综合| www.日韩在线| 三级久久三级久久久| 国产欧美一区二区三区网站| 在线视频欧美区| 国产一区在线不卡| 亚洲午夜精品网| 国产欧美日韩在线| 91麻豆精品91久久久久同性| 福利一区福利二区| 秋霞电影一区二区| 亚洲男人的天堂在线观看| 日韩欧美另类在线| 一本一本大道香蕉久在线精品| 美女性感视频久久| 亚洲乱码中文字幕| 久久精品日韩一区二区三区| 欧美日韩一区不卡| 91麻豆精品视频| 国产一区二区三区综合| 亚洲成人av一区二区| 国产精品久线在线观看| 日韩女同互慰一区二区| 欧美日韩精品系列| 91在线视频播放地址| 国产一区二区在线电影| 午夜成人免费电影| 亚洲激情在线激情| 中文字幕日韩精品一区| 国产日韩欧美综合在线| 日韩一区二区不卡| 777xxx欧美| 欧美三级日韩三级国产三级| 91最新地址在线播放| 高清在线观看日韩| 国产一二精品视频| 久久国产视频网| 日本一区中文字幕| 五月综合激情网| 亚洲一区二区综合| 亚洲一区二区三区四区的| 专区另类欧美日韩| ...av二区三区久久精品| 国产精品视频免费| 欧美韩日一区二区三区四区| 久久久三级国产网站| 久久久午夜精品| 久久久久9999亚洲精品| 久久色在线观看| 久久亚洲综合色一区二区三区| 欧美一区二区视频免费观看| 欧美老年两性高潮| 91精品婷婷国产综合久久性色| 欧美高清精品3d| 日韩一区二区免费视频| 欧美大片日本大片免费观看| 精品久久国产老人久久综合| 精品国产在天天线2019| 久久精品日韩一区二区三区| 欧美国产一区二区| 自拍偷拍欧美精品| 亚洲国产aⅴ天堂久久| 日韩av电影免费观看高清完整版| 日韩中文字幕不卡| 激情伊人五月天久久综合| 韩国女主播一区二区三区| 国产综合一区二区| 成人免费视频一区二区| 91国在线观看| 欧美一区二区三区免费在线看| 精品少妇一区二区| 中国色在线观看另类| 亚洲在线一区二区三区| 日韩在线观看一区二区| 国内精品免费**视频| 成+人+亚洲+综合天堂| 欧美中文字幕亚洲一区二区va在线| 欧美久久久久久蜜桃| 久久五月婷婷丁香社区| 综合久久久久久久| 美国av一区二区| 丁香婷婷综合激情五月色| 色999日韩国产欧美一区二区| 欧美日韩视频在线一区二区| 精品成人免费观看| 亚洲品质自拍视频网站| 美日韩黄色大片| www.在线欧美| 91麻豆精品国产91久久久久 | 色婷婷一区二区| 欧美日韩国产一级片| 国产日产欧美一区二区三区| 亚洲视频小说图片| 日韩成人精品视频| av日韩在线网站| 日韩你懂的电影在线观看| 亚洲天堂网中文字| 精品在线一区二区三区| 91激情在线视频| 久久久久久久久久看片| 亚洲国产sm捆绑调教视频| 成人精品gif动图一区| 欧美精品粉嫩高潮一区二区| 国产女同互慰高潮91漫画| 性欧美大战久久久久久久久| 粉嫩av一区二区三区在线播放| 欧美精品久久99久久在免费线| 国产精品嫩草影院com| 免费成人性网站| 在线观看日韩电影| 国产日韩欧美综合一区| 欧美a一区二区| 欧美视频三区在线播放| 国产精品拍天天在线| 美国一区二区三区在线播放| 欧美性色综合网| 国产精品欧美一级免费| 国产一区二区看久久| 欧美精品视频www在线观看| 亚洲欧美韩国综合色| 国产精品夜夜嗨| 欧美成人a∨高清免费观看| 亚洲一区二区三区在线播放| 不卡一区在线观看| 久久精品亚洲麻豆av一区二区| 免费人成在线不卡| 欧美日韩一二区| 亚洲一区二区欧美| 色婷婷精品大在线视频| 国产精品久久久久国产精品日日| 久久精品久久综合| 欧美一区二区视频网站| 精品一区二区三区免费毛片爱| 91麻豆.com| 综合网在线视频| 99精品欧美一区| 亚洲人成在线观看一区二区| 国产91色综合久久免费分享| 欧美精品一区二| 精品一区二区免费| 精品久久久网站| 国产一二精品视频| 国产欧美一区二区三区沐欲| 国产美女视频91| 久久九九影视网| 成人丝袜视频网| 18涩涩午夜精品.www| 99在线热播精品免费| 亚洲色图另类专区| 一本到不卡免费一区二区| 亚洲黄网站在线观看| 欧美在线综合视频| 视频一区欧美精品| 日韩欧美国产午夜精品| 国产一区二区不卡| 久久久不卡网国产精品二区| 国产精品一区二区在线播放| 国产精品久线观看视频| 91蜜桃视频在线| 亚洲福中文字幕伊人影院| 欧美浪妇xxxx高跟鞋交| 国模冰冰炮一区二区| 国产精品日韩成人| 欧美三级乱人伦电影| 麻豆精品一区二区综合av| 久久伊人中文字幕| 99在线视频精品| 视频在线在亚洲| 国产日韩欧美一区二区三区乱码 | 精品福利一区二区三区| 国产美女在线观看一区| 亚洲视频一区在线| 91精品国产福利| 国产精品1区二区.| 91丨porny丨中文| 1区2区3区精品视频| 欧洲av在线精品| 人禽交欧美网站| 国产精品国产a| 精品视频在线免费|