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

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

?? tb2item.pas

?? Delphi的skin.v3.84皮膚美化包 可以使delphi的界面很美觀
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
end;

procedure TTBCustomItemActionLink.SetImageIndex(Value: Integer);
begin
  if IsImageIndexLinked then FClient.ImageIndex := Value;
end;

procedure TTBCustomItemActionLink.SetShortCut(Value: TShortCut);
begin
  if IsShortCutLinked then FClient.ShortCut := Value;
end;

procedure TTBCustomItemActionLink.SetVisible(Value: Boolean);
begin
  if IsVisibleLinked then FClient.Visible := Value;
end;

procedure TTBCustomItemActionLink.SetOnExecute(Value: TNotifyEvent);
begin
  if IsOnExecuteLinked then FClient.OnClick := Value;
end;


{ TTBCustomItem }

{}function ItemContainingItems(const AItem: TTBCustomItem): TTBCustomItem;
begin
  if Assigned(AItem) and Assigned(AItem.FLinkSubitems) then
    Result := AItem.FLinkSubitems
  else
    Result := AItem;
end;

constructor TTBCustomItem.Create(AOwner: TComponent);
begin
  inherited;
  FEnabled := True;
  FImageIndex := -1;
  FInheritOptions := True;
  FItemStyle := [tbisSelectable, tbisRedrawOnSelChange, tbisRedrawOnMouseOverChange];
  FVisible := True;
  ReferenceClickWnd;
end;

destructor TTBCustomItem.Destroy;
var
  I: Integer;
begin
  Destroying;
  RemoveFromClickList(Self);
  { Changed in 0.33. Moved FParent.Remove call *after* the child items are
    deleted. }
  for I := Count-1 downto 0 do
    Items[I].Free;
  if Assigned(FParent) then
    FParent.Remove(Self);
  FreeMem(FItems);
  FActionLink.Free;
  FActionLink := nil;
  FreeAndNil(FSubMenuImagesChangeLink);
  FreeAndNil(FImagesChangeLink);
  inherited;
  if Assigned(FNotifyList) then begin
    for I := FNotifyList.Count-1 downto 0 do
      Dispose(PItemChangedNotificationData(FNotifyList[I]));
    FNotifyList.Free;
  end;
  FLinkParents.Free;
  ReleaseClickWnd;
end;

{$IFDEF JR_D6}
function TTBCustomItem.IsAutoCheckStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsAutoCheckLinked;
end;
{$ENDIF}

function TTBCustomItem.IsCaptionStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsCaptionLinked;
end;

function TTBCustomItem.IsCheckedStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsCheckedLinked;
end;

function TTBCustomItem.IsEnabledStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsEnabledLinked;
end;

function TTBCustomItem.IsHintStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsHintLinked;
end;

function TTBCustomItem.IsHelpContextStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsHelpContextLinked;
end;

function TTBCustomItem.IsImageIndexStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsImageIndexLinked;
end;

function TTBCustomItem.IsShortCutStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsShortCutLinked;
end;

function TTBCustomItem.IsVisibleStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsVisibleLinked;
end;

function TTBCustomItem.IsOnClickStored: Boolean;
begin
  Result := (ActionLink = nil) or not FActionLink.IsOnExecuteLinked;
end;

function TTBCustomItem.GetAction: TBasicAction;
begin
  if FActionLink <> nil then
    Result := FActionLink.Action
  else
    Result := nil;
end;

function TTBCustomItem.GetActionLinkClass: TTBCustomItemActionLinkClass;
begin
  Result := TTBCustomItemActionLink;
end;

procedure TTBCustomItem.DoActionChange(Sender: TObject);
begin
  if Sender = Action then ActionChange(Sender, False);
end;

procedure TTBCustomItem.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  if Action is TCustomAction then
    with TCustomAction(Sender) do
    begin
      {$IFDEF JR_D6}
      if not CheckDefaults or (Self.AutoCheck = False) then
        Self.AutoCheck := AutoCheck;
      {$ENDIF}
      if not CheckDefaults or (Self.Caption = '') then
        Self.Caption := Caption;
      if not CheckDefaults or (Self.Checked = False) then
        Self.Checked := Checked;
      if not CheckDefaults or (Self.Enabled = True) then
        Self.Enabled := Enabled;
      if not CheckDefaults or (Self.HelpContext = 0) then
        Self.HelpContext := HelpContext;
      if not CheckDefaults or (Self.Hint = '') then
        Self.Hint := Hint;
      if not CheckDefaults or (Self.ImageIndex = -1) then
        Self.ImageIndex := ImageIndex;
      if not CheckDefaults or (Self.ShortCut = scNone) then
        Self.ShortCut := ShortCut;
      if not CheckDefaults or (Self.Visible = True) then
        Self.Visible := Visible;
      if not CheckDefaults or not Assigned(Self.OnClick) then
        Self.OnClick := OnExecute;
    end;
end;

procedure TTBCustomItem.SetAction(Value: TBasicAction);
begin
  if Value = nil then begin
    FActionLink.Free;
    FActionLink := nil;
  end
  else begin
    if FActionLink = nil then
      FActionLink := GetActionLinkClass.Create(Self);
    FActionLink.Action := Value;
    FActionLink.OnChange := DoActionChange;
    { Note: Delphi's Controls.pas and Menus.pas merely check for
      "csLoading in Value.ComponentState" here. But that doesn't help when
      the Action property references an action on another form / data module
      that has already finished loading. So we check two things:
        1. csLoading in Value.ComponentState
        2. csLoading in ComponentState
      In the typical case where the item and action list reside on the same
      form, #1 and #2 are both true.
      Only #1 is true when Action references an action on another form / data
      module that is created *after* the item (e.g. if Form1.TBItem1.Action =
      Form2.Action1, and Form1 is created before Form2).
      Only #2 is true when Action references an action on another form / data
      module that is created *before* the item (e.g. if Form2.TBItem1.Action =
      Form1.Action1, and Form1 is created before Form2). }
    ActionChange(Value, (csLoading in Value.ComponentState) or
      (csLoading in ComponentState));
    Value.FreeNotification(Self);
  end;
end;

procedure TTBCustomItem.InitiateAction;
begin
  if FActionLink <> nil then FActionLink.Update;
end;

procedure TTBCustomItem.Loaded;
begin
  inherited;
  if Action <> nil then ActionChange(Action, True);
end;

procedure TTBCustomItem.GetChildren(Proc: TGetChildProc; Root: TComponent);
var
  I: Integer;
begin
  for I := 0 to FItemCount-1 do
    Proc(FItems[I].Item);
end;

procedure TTBCustomItem.SetChildOrder(Child: TComponent; Order: Integer);
var
  I: Integer;
begin
  I := IndexOf(Child as TTBCustomItem);
  if I <> -1 then
    Move(I, Order);
end;

function TTBCustomItem.HasParent: Boolean;
begin
  Result := True;
end;

function TTBCustomItem.GetParentComponent: TComponent;
begin
  if (FParent <> nil) and (FParent.FParentComponent <> nil) then
    Result := FParent.FParentComponent
  else
    Result := FParent;
end;

procedure TTBCustomItem.SetName(const NewName: TComponentName);
begin
  if Name <> NewName then begin
    inherited;
    if Assigned(FParent) then
      FParent.Notify(tbicNameChanged, -1, Self);
  end;
end;

procedure TTBCustomItem.SetParentComponent(Value: TComponent);
var
  Intf: ITBItems;
begin
  if FParent <> nil then FParent.Remove(Self);
  if Value <> nil then begin
    if Value is TTBCustomItem then
      TTBCustomItem(Value).Add(Self)
    else if Value.GetInterface(ITBItems, Intf) then
      Intf.GetItems.Add(Self);
  end;
end;

procedure TTBCustomItem.Notification(AComponent: TComponent;
  Operation: TOperation);
begin
  inherited;
  if Operation = opRemove then begin
    RemoveFromList(FLinkParents, AComponent);
    if AComponent = Action then Action := nil;
    if AComponent = Images then Images := nil;
    if AComponent = SubMenuImages then SubMenuImages := nil;
    if AComponent = LinkSubitems then LinkSubitems := nil;
  end;
end;

procedure TTBCustomItem.IndexError;
begin
  raise ETBItemError.Create(STBToolbarIndexOutOfBounds);
end;

class procedure TTBCustomItem.ClickWndProc(var Message: TMessage);
var
  List: TList;
  I: Integer;
  Item: TObject;
begin
  if Message.Msg = WM_TB2K_CLICKITEM then begin
    List := ClickList;  { optimization... }
    if Assigned(List) then begin
      I := Message.LParam;
      if (I >= 0) and (I < List.Count) then begin
        Item := List[I];
        List[I] := nil;
        if Item = Pointer(1) then  { is it a destroyed item? }
          Item := nil;
      end
      else
        Item := nil;

      { Remove trailing nil items from ClickList. This is not *necessary*, but
        it will make RemoveFromClickList faster if we clean out items that
        aren't used, and may never be used again. }
      for I := List.Count-1 downto 0 do begin
        if List[I] = nil then
          List.Delete(I)
        else
          Break;
      end;

      if Assigned(Item) then begin
        try
          if Item is TTBCustomItem then
            TTBCustomItem(Item).Click
          else if Item is TTBItemViewer then
            TTBItemViewer(Item).AccSelect(Message.WParam <> 0);
        except
          Application.HandleException(Item);
        end;
      end;
    end;
  end
  else
    with Message do
      Result := DefWindowProc(ClickWnd, Msg, wParam, lParam);
end;

procedure TTBCustomItem.PostClick;
{ Posts a message to the message queue that causes the item's Click handler to
  be executed when control is returned to the message loop.
  This should be called instead of Click when a WM_SYSCOMMAND message is
  (possibly) currently being handled, because TApplication.WndProc's
  CM_APPSYSCOMMAND handler disables the VCL's processing of focus messages
  until the Perform(WM_SYSCOMMAND, ...) call returns. (An OnClick handler which
  calls TForm.ShowModal needs focus messages to be enabled or else the form
  will be shown with no initial focus.) }
begin
  QueueClick(Self, 0);
end;

procedure TTBCustomItem.Click;
begin
  if Enabled then begin
    { Following code based on D6's TMenuItem.Click }
    {$IFDEF JR_D6}
    if (not Assigned(ActionLink) and AutoCheck) or
       (Assigned(ActionLink) and not ActionLink.IsAutoCheckLinked and AutoCheck) then
    {$ELSE}
    if AutoCheck then
    {$ENDIF}
      Checked := not Checked;
    { Following code based on D4's TControl.Click }
    { Call OnClick if assigned and not equal to associated action's OnExecute.
      If associated action's OnExecute assigned then call it, otherwise, call
      OnClick. }
    if Assigned(FOnClick) and (Action <> nil) and
       not MethodsEqual(TMethod(FOnClick), TMethod(Action.OnExecute)) then
      FOnClick(Self)
    else
    if not(csDesigning in ComponentState) and (ActionLink <> nil) then
      ActionLink.Execute {$IFDEF JR_D6}(Self){$ENDIF}
    else
    if Assigned(FOnClick) then
      FOnClick(Self);
  end;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久夜色精品国产网站| 久久精品国产亚洲高清剧情介绍| 成人小视频在线| 中文欧美字幕免费| 天堂一区二区在线| 国产高清精品久久久久| 国产日韩欧美激情| youjizz久久| 一区二区三区波多野结衣在线观看 | 国产精品一区免费视频| 国产三级精品在线| 97精品超碰一区二区三区| 亚洲国产精品久久人人爱蜜臀| 欧美精品第1页| 国产原创一区二区三区| 国产精品久久久久婷婷二区次| 99国产麻豆精品| 亚洲二区在线视频| 精品999在线播放| 97久久精品人人做人人爽50路| 一区二区三区成人| 精品成人a区在线观看| 丁香激情综合五月| 亚洲午夜久久久久中文字幕久| 精品国产区一区| av激情亚洲男人天堂| 日韩黄色在线观看| 国产女同互慰高潮91漫画| 欧美三级日韩三级| 国产成人精品午夜视频免费| 亚洲最大的成人av| 欧美变态凌虐bdsm| 欧美在线观看视频一区二区三区| 精品系列免费在线观看| 亚洲免费在线电影| 精品国产99国产精品| 在线亚洲免费视频| 国产成人av资源| 日本成人在线看| 日韩激情视频网站| 国产精品女同一区二区三区| 欧美高清激情brazzers| 波多野洁衣一区| 美女脱光内衣内裤视频久久影院| 亚洲欧洲日韩一区二区三区| 日韩免费高清av| 欧美在线免费观看视频| 国产91精品一区二区麻豆网站| 日韩精品国产精品| 亚洲精选视频在线| 欧美激情中文不卡| 欧美一级日韩一级| 欧美性三三影院| 91小视频在线观看| 国产91高潮流白浆在线麻豆| 免费看日韩a级影片| 亚洲与欧洲av电影| 亚洲欧美日韩综合aⅴ视频| 国产亚洲一区二区三区| 日韩欧美区一区二| 欧美一区二区久久久| 在线观看一区二区视频| 91网站黄www| 北岛玲一区二区三区四区| 精东粉嫩av免费一区二区三区| 日韩成人dvd| 日韩专区中文字幕一区二区| 亚洲成精国产精品女| 亚洲精选视频免费看| 综合自拍亚洲综合图不卡区| 欧美va日韩va| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 337p亚洲精品色噜噜狠狠| 91美女在线看| 色av成人天堂桃色av| 91亚洲资源网| 色哟哟国产精品| 91国产视频在线观看| 色天使色偷偷av一区二区| 91麻豆免费观看| 色综合久久久久综合体桃花网| 91蜜桃网址入口| 欧美亚洲动漫另类| 欧美另类一区二区三区| 日韩一区二区电影| 精品国产99国产精品| 国产日韩欧美制服另类| 欧美国产日韩a欧美在线观看| 国产女同互慰高潮91漫画| 国产精品色哟哟网站| 亚洲三级在线免费| 亚洲成人777| 国内成人自拍视频| av电影天堂一区二区在线| 97超碰欧美中文字幕| 欧美日韩国产一区| 日韩精品一区二区三区在线| 久久你懂得1024| 亚洲日本一区二区三区| 亚洲综合精品久久| 蜜桃一区二区三区四区| 国产精品一区二区三区四区 | 成人午夜av影视| 91极品美女在线| 日韩一区二区三区在线视频| 精品成人一区二区三区| 亚洲色图一区二区| 日韩在线卡一卡二| 国产成人午夜电影网| 色av一区二区| 精品欧美久久久| 亚洲欧美一区二区在线观看| 日韩国产高清影视| 国产成人精品一区二区三区网站观看 | 夜夜精品浪潮av一区二区三区| 日精品一区二区三区| 成人午夜av电影| 欧美剧在线免费观看网站| 久久九九影视网| 亚洲成av人片一区二区| 国产成人精品免费视频网站| 欧美在线不卡视频| 国产日韩欧美制服另类| 亚洲电影一级黄| 不卡的av在线播放| 91精品国产综合久久香蕉的特点 | 丝袜国产日韩另类美女| 高清国产一区二区| 欧美天堂一区二区三区| 国产女人18水真多18精品一级做| 一区二区欧美精品| 成人永久免费视频| 欧美一区二区性放荡片| 亚洲人精品午夜| 国产一区二区三区黄视频| 欧美日韩国产小视频在线观看| 国产日韩三级在线| 久久se精品一区二区| 欧美性高清videossexo| 中文字幕在线不卡一区| 九一久久久久久| 精品视频一区 二区 三区| 亚洲欧洲99久久| 国产麻豆91精品| 日韩视频一区二区三区| 调教+趴+乳夹+国产+精品| 91天堂素人约啪| 亚洲国产精品传媒在线观看| 美脚の诱脚舐め脚责91| 欧美麻豆精品久久久久久| 一区二区三区不卡视频| 99精品欧美一区二区三区小说 | 精品粉嫩超白一线天av| 日韩国产精品久久| 欧美久久一二区| 午夜精品视频一区| 欧美人牲a欧美精品| 亚洲成人一区二区| 91福利视频网站| 亚洲专区一二三| 在线一区二区三区做爰视频网站| 成人欧美一区二区三区白人| 成人激情免费网站| 国产精品青草久久| 床上的激情91.| 国产精品萝li| 99久久99久久久精品齐齐| 国产精品美女久久久久久| 成人激情图片网| 亚洲欧美另类小说视频| 欧美综合久久久| 亚洲电影一级片| 91精品国产一区二区三区蜜臀| 石原莉奈在线亚洲二区| 91精品黄色片免费大全| 久久精品国产77777蜜臀| 欧美v日韩v国产v| 精品综合久久久久久8888| 国产亚洲自拍一区| av一本久道久久综合久久鬼色| 亚洲精品中文在线影院| 欧美高清视频不卡网| 美女一区二区视频| www国产亚洲精品久久麻豆| 国产一区二区三区视频在线播放| 久久精品人人做人人爽97| 成人app网站| 一区二区高清免费观看影视大全| 欧美性生交片4| 九色porny丨国产精品| 国产女同性恋一区二区| 在线观看视频欧美| 男女性色大片免费观看一区二区| 精品国产伦一区二区三区观看方式| 国产一二三精品| 亚洲人成网站影音先锋播放| 欧美色窝79yyyycom| 国产在线不卡一区| 亚洲视频中文字幕| 日韩西西人体444www|