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

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

?? bsskingrids.pas

?? 實現網絡流量的生成,為cs結構,可以控制流量大小
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
procedure TbsSkinCustomGrid.ChangeSkinData;
var
  i, Old: Integer;
begin
  GetSkinData;
  if FIndex > -1
  then
    begin
      Old := DefaultRowHeight;
      i := RectHeight(SelectCellRect);
      if i <> Old
      then
        DefaultRowHeight := i
      else
        Invalidate;
    end
  else
    begin
      DefaultRowHeight := FDefaultCellHeight;
      Invalidate;
    end;
  UpDateScrollRange(True);
  if FVScrollBar <> nil then FVScrollBar.Align := FVScrollBar.Align;
  if FHScrollBar <> nil then FHScrollBar.Align := FHScrollBar.Align;
end;

procedure TbsSkinCustomGrid.GetSkinData;
begin
  Picture := nil;
  FIndex := -1;
  inherited;
  if FIndex > -1
  then
    if TbsDataSkinControl(FSD.CtrlList.Items[FIndex]) is TbsDataSkinGridControl
    then
      with TbsDataSkinGridControl(FSD.CtrlList.Items[FIndex]) do
      begin
        //
        if (PictureIndex <> -1) and (PictureIndex < FSD.FActivePictures.Count)
        then
          Picture := TBitMap(FSD.FActivePictures.Items[PictureIndex])
        else
          Picture := nil;
        //
        Self.FixedCellRect := FixedCellRect;
        Self.SelectCellRect := SelectCellRect;
        Self.FocusCellRect := FocusCellRect;
        Self.FixedCellLeftOffset := FixedCellLeftOffset;
        Self.FixedCellRightOffset := FixedCellRightOffset;
        Self.FixedCellTextRect := FixedCellTextRect;
        Self.CellLeftOffset := CellLeftOffset;
        Self.CellRightOffset := CellRightOffset;
        Self.CellTextRect := CellTextRect;
        Self.LinesColor := LinesColor;
        Self.BGColor := BGColor;
        //
        Self.FontName := FontName;
        Self.FontStyle := FontStyle;
        Self.FontHeight := FontHeight;
        Self.FontColor := FontColor;
        Self.SelectFontColor := SelectFontColor;
        Self.FocusFontColor := FocusFontColor;
        Self.FixedFontName := FixedFontName;
        Self.FixedFontStyle := FixedFontStyle;
        Self.FixedFontHeight := FixedFontHeight;
        Self.FixedFontColor := FixedFontColor;

        if IsNullRect(Self.SelectCellRect)
        then
          Self.SelectCellRect := Self.FocusCellRect; 
        if IsNullRect(Self.FocusCellRect)
        then
          Self.FocusCellRect := Self.SelectCellRect;

        if IsNullRect(Self.FixedCellRect)
        then
          begin
            FIndex := -1;
            Picture := nil;
          end;
          
      end;
end;

procedure TbsSkinCustomGrid.AdjustSize(Index, Amount: Longint; Rows: Boolean);
var
  NewCur: TGridCoord;
  OldRows, OldCols: Longint;
  MovementX, MovementY: Longint;
  MoveRect: TGridRect;
  ScrollArea: TRect;
  AbsAmount: Longint;

  function DoSizeAdjust(var Count: Longint; var Extents: Pointer;
    DefaultExtent: Integer; var Current: Longint): Longint;
  var
    I: Integer;
    NewCount: Longint;
  begin
    NewCount := Count + Amount;
    if NewCount < Index then InvalidOp(STooManyDeleted);
    if (Amount < 0) and Assigned(Extents) then
    begin
      Result := 0;
      for I := Index to Index - Amount - 1 do
        Inc(Result, PIntArray(Extents)^[I]);
    end
    else
      Result := Amount * DefaultExtent;
    if Extents <> nil then
      ModifyExtents(Extents, Index, Amount, DefaultExtent);
    Count := NewCount;
    if Current >= Index then
      if (Amount < 0) and (Current < Index - Amount) then Current := Index
      else Inc(Current, Amount);
  end;

begin
  if Amount = 0 then Exit;
  NewCur := FCurrent;
  OldCols := ColCount;
  OldRows := RowCount;
  MoveRect.Left := FixedCols;
  MoveRect.Right := ColCount - 1;
  MoveRect.Top := FixedRows;
  MoveRect.Bottom := RowCount - 1;
  MovementX := 0;
  MovementY := 0;
  AbsAmount := Amount;
  if AbsAmount < 0 then AbsAmount := -AbsAmount;
  if Rows then
  begin
    MovementY := DoSizeAdjust(FRowCount, FRowHeights, DefaultRowHeight, NewCur.Y);
    MoveRect.Top := Index;
    if Index + AbsAmount <= TopRow then MoveRect.Bottom := TopRow - 1;
  end
  else
  begin
    MovementX := DoSizeAdjust(FColCount, FColWidths, DefaultColWidth, NewCur.X);
    MoveRect.Left := Index;
    if Index + AbsAmount <= LeftCol then MoveRect.Right := LeftCol - 1;
  end;
  GridRectToScreenRect(MoveRect, ScrollArea, True);
  if not IsRectEmpty(ScrollArea) then
  begin
    ScrollWindow(Handle, MovementX, MovementY, @ScrollArea, @ScrollArea);
    UpdateWindow(Handle);
  end;
  SizeChanged(OldCols, OldRows);
  if (NewCur.X <> FCurrent.X) or (NewCur.Y <> FCurrent.Y) then
    MoveCurrent(NewCur.X, NewCur.Y, True, True);
end;

function TbsSkinCustomGrid.BoxRect(ALeft, ATop, ARight, ABottom: Longint): TRect;
var
  GridRect: TGridRect;
begin
  GridRect.Left := ALeft;
  GridRect.Right := ARight;
  GridRect.Top := ATop;
  GridRect.Bottom := ABottom;
  GridRectToScreenRect(GridRect, Result, False);
end;

procedure TbsSkinCustomGrid.DoExit;
begin
  inherited DoExit;
  if not (goAlwaysShowEditor in Options) then HideEditor;
end;

function TbsSkinCustomGrid.CellRect(ACol, ARow: Longint): TRect;
begin
  Result := BoxRect(ACol, ARow, ACol, ARow);
end;

function TbsSkinCustomGrid.CanEditAcceptKey(Key: Char): Boolean;
begin
  Result := True;
end;

function TbsSkinCustomGrid.CanGridAcceptKey(Key: Word; Shift: TShiftState): Boolean;
begin
  Result := True;
end;

function TbsSkinCustomGrid.CanEditModify: Boolean;
begin
  Result := FCanEditModify;
end;

function TbsSkinCustomGrid.CanEditShow: Boolean;
begin
  Result := ([goRowSelect, goEditing] * Options = [goEditing]) and
    FEditorMode and not (csDesigning in ComponentState) and HandleAllocated and
    ((goAlwaysShowEditor in Options) or IsActiveControl);
end;

function TbsSkinCustomGrid.IsActiveControl: Boolean;
var
  H: Hwnd;
  ParentForm: TCustomForm;
begin
  Result := False;
  ParentForm := GetParentForm(Self);
  if Assigned(ParentForm) then
  begin
    if (ParentForm.ActiveControl = Self) then
      Result := True
  end
  else
  begin
    H := GetFocus;
    while IsWindow(H) and (Result = False) do
    begin
      if H = WindowHandle then
        Result := True
      else
        H := GetParent(H);
    end;
  end;
end;

function TbsSkinCustomGrid.GetEditMask(ACol, ARow: Longint): string;
begin
  Result := '';
end;

function TbsSkinCustomGrid.GetEditText(ACol, ARow: Longint): string;
begin
  Result := '';
end;

procedure TbsSkinCustomGrid.SetEditText(ACol, ARow: Longint; const Value: string);
begin
end;

function TbsSkinCustomGrid.GetEditLimit: Integer;
begin
  Result := 0;
end;

procedure TbsSkinCustomGrid.HideEditor;
begin
  FEditorMode := False;
  HideEdit;
end;

procedure TbsSkinCustomGrid.ShowEditor;
begin
  FEditorMode := True;
  UpdateEdit;
end;

procedure TbsSkinCustomGrid.ShowEditorChar(Ch: Char);
begin
  ShowEditor;
  if FInplaceEdit <> nil then
    PostMessage(FInplaceEdit.Handle, WM_CHAR, Word(Ch), 0);
end;

procedure TbsSkinCustomGrid.InvalidateEditor;
begin
  FInplaceCol := -1;
  FInplaceRow := -1;
  UpdateEdit;
end;

procedure TbsSkinCustomGrid.ReadColWidths(Reader: TReader);
var
  I: Integer;
begin
  with Reader do
  begin
    ReadListBegin;
    for I := 0 to ColCount - 1 do ColWidths[I] := ReadInteger;
    ReadListEnd;
  end;
end;

procedure TbsSkinCustomGrid.ReadRowHeights(Reader: TReader);
var
  I: Integer;
begin
  with Reader do
  begin
    ReadListBegin;
    for I := 0 to RowCount - 1 do RowHeights[I] := ReadInteger;
    ReadListEnd;
  end;
end;

procedure TbsSkinCustomGrid.WriteColWidths(Writer: TWriter);
var
  I: Integer;
begin
  with Writer do
  begin
    WriteListBegin;
    for I := 0 to ColCount - 1 do WriteInteger(ColWidths[I]);
    WriteListEnd;
  end;
end;

procedure TbsSkinCustomGrid.WriteRowHeights(Writer: TWriter);
var
  I: Integer;
begin
  with Writer do
  begin
    WriteListBegin;
    for I := 0 to RowCount - 1 do WriteInteger(RowHeights[I]);
    WriteListEnd;
  end;
end;

procedure TbsSkinCustomGrid.DefineProperties(Filer: TFiler);

  function DoColWidths: Boolean;
  begin
    if Filer.Ancestor <> nil then
      Result := not CompareExtents(TbsSkinCustomGrid(Filer.Ancestor).FColWidths, FColWidths)
    else
      Result := FColWidths <> nil;
  end;

  function DoRowHeights: Boolean;
  begin
    if Filer.Ancestor <> nil then
      Result := not CompareExtents(TbsSkinCustomGrid(Filer.Ancestor).FRowHeights, FRowHeights)
    else
      Result := FRowHeights <> nil;
  end;


begin
  inherited DefineProperties(Filer);
  if FSaveCellExtents then
    with Filer do
    begin
      DefineProperty('ColWidths', ReadColWidths, WriteColWidths, DoColWidths);
      DefineProperty('RowHeights', ReadRowHeights, WriteRowHeights, DoRowHeights);
    end;
end;

procedure TbsSkinCustomGrid.MoveColumn(FromIndex, ToIndex: Longint);
var
  Rect: TGridRect;
begin
  if FromIndex = ToIndex then Exit;
  if Assigned(FColWidths) then
  begin
    MoveExtent(FColWidths, FromIndex + 1, ToIndex + 1);
    MoveExtent(FTabStops, FromIndex + 1, ToIndex + 1);
  end;
  MoveAdjust(FCurrent.X, FromIndex, ToIndex);
  MoveAdjust(FAnchor.X, FromIndex, ToIndex);
  MoveAdjust(FInplaceCol, FromIndex, ToIndex);
  Rect.Top := 0;
  Rect.Bottom := VisibleRowCount;
  if FromIndex < ToIndex then
  begin
    Rect.Left := FromIndex;
    Rect.Right := ToIndex;
  end
  else
  begin
    Rect.Left := ToIndex;
    Rect.Right := FromIndex;
  end;
  InvalidateRect(Rect);
  ColumnMoved(FromIndex, ToIndex);
  if Assigned(FColWidths) then
    ColWidthsChanged;
  UpdateEdit;
end;

procedure TbsSkinCustomGrid.ColumnMoved(FromIndex, ToIndex: Longint);
begin
end;

procedure TbsSkinCustomGrid.MoveRow(FromIndex, ToIndex: Longint);
begin
  if Assigned(FRowHeights) then
    MoveExtent(FRowHeights, FromIndex + 1, ToIndex + 1);
  MoveAdjust(FCurrent.Y, FromIndex, ToIndex);
  MoveAdjust(FAnchor.Y, FromIndex, ToIndex);
  MoveAdjust(FInplaceRow, FromIndex, ToIndex);
  RowMoved(FromIndex, ToIndex);
  if Assigned(FRowHeights) then
    RowHeightsChanged;
  UpdateEdit;
end;

procedure TbsSkinCustomGrid.RowMoved(FromIndex, ToIndex: Longint);
begin
end;

function TbsSkinCustomGrid.MouseCoord(X, Y: Integer): TGridCoord;
var
  DrawInfo: TbsGridDrawInfo;
begin
  CalcDrawInfo(DrawInfo);
  Result := CalcCoordFromPoint(X, Y, DrawInfo);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡电影免费在线播放一区| 日韩视频中午一区| 欧美本精品男人aⅴ天堂| 国产精品国产三级国产有无不卡| 天堂午夜影视日韩欧美一区二区| a级精品国产片在线观看| 精品国产一区久久| 日韩经典中文字幕一区| 在线亚洲+欧美+日本专区| 国产欧美日韩不卡| 国产精品白丝jk白祙喷水网站| 91精品免费在线| 亚洲永久精品大片| 91成人在线精品| 亚洲婷婷综合久久一本伊一区| 国产老女人精品毛片久久| 日韩女优av电影| 蜜臀av性久久久久蜜臀aⅴ| 欧美日韩高清一区二区三区| 一区二区三区小说| 91在线你懂得| 一区二区三区欧美亚洲| 91国模大尺度私拍在线视频| 日韩伦理免费电影| 色综合欧美在线| 亚洲乱码国产乱码精品精98午夜 | 国产清纯在线一区二区www| 美女爽到高潮91| 欧美成人一级视频| 国产一区欧美日韩| 中文字幕av在线一区二区三区| 国产精品一区二区三区四区| 日韩精品中文字幕一区| 久久国产精品72免费观看| 欧美成人aa大片| 激情五月播播久久久精品| 2020国产精品| 成人久久久精品乱码一区二区三区| 久久久午夜精品| 99久久久久免费精品国产 | 国产欧美一区二区三区在线看蜜臀| 狠狠色综合日日| 国产精品免费丝袜| 91看片淫黄大片一级在线观看| 亚洲激情网站免费观看| 色综合天天性综合| 香蕉加勒比综合久久| 日韩欧美二区三区| www.亚洲国产| 亚洲一线二线三线视频| 欧美大片一区二区| 99这里只有精品| 婷婷六月综合网| 国产欧美日韩一区二区三区在线观看| 不卡大黄网站免费看| 丝袜美腿一区二区三区| 久久久精品综合| 欧美午夜电影网| 国产大片一区二区| 亚洲国产人成综合网站| 精品久久一区二区三区| 色激情天天射综合网| 激情综合色丁香一区二区| 亚洲手机成人高清视频| 日韩精品一区二区三区视频播放 | 91精品国产一区二区三区香蕉| 久久国产精品露脸对白| 中文字幕在线一区免费| 欧美精品国产精品| 成人18视频日本| 日韩成人精品在线观看| 中文字幕欧美三区| 91精品视频网| 91国偷自产一区二区开放时间| 国产综合色精品一区二区三区| 中文字幕佐山爱一区二区免费| 日韩美女视频一区二区在线观看| 91女神在线视频| 国产乱子伦一区二区三区国色天香| 亚洲色图.com| 国产色婷婷亚洲99精品小说| 91福利小视频| 成+人+亚洲+综合天堂| 精东粉嫩av免费一区二区三区| 亚洲成av人综合在线观看| 亚洲天堂免费看| 国产网站一区二区| 精品国产污网站| 91精品国产综合久久香蕉的特点 | 美女视频黄免费的久久| 一区二区三区高清不卡| 中文字幕一区视频| 久久久国产午夜精品 | 国产精品灌醉下药二区| 日韩欧美一级精品久久| 欧美日韩一区二区在线观看| 成人av资源站| 国产成人精品三级麻豆| 国产毛片一区二区| 国内精品视频666| 日本 国产 欧美色综合| 日韩电影免费在线观看网站| 亚洲影院在线观看| 亚洲一区二区三区免费视频| 亚洲欧美日韩国产一区二区三区| 国产欧美精品一区二区三区四区 | 成人免费黄色在线| 成人性生交大片免费看视频在线 | 久久久www免费人成精品| 欧美成人激情免费网| 欧美裸体一区二区三区| 制服丝袜中文字幕一区| 欧美一区二区日韩一区二区| 欧美日韩aaa| 日韩精品一区二区三区在线| 日韩欧美一级片| 久久网这里都是精品| 国产偷国产偷精品高清尤物 | 久久久久久久久免费| 久久久青草青青国产亚洲免观| 国产亚洲欧美一级| 国产精品国产a| 亚洲午夜av在线| 五月天亚洲婷婷| 久久精品国产99国产精品| 韩国精品一区二区| 成人美女在线观看| 欧美日韩一区二区三区四区五区| 欧美日韩精品一区二区三区四区 | 国产人伦精品一区二区| 亚洲欧美怡红院| 天堂午夜影视日韩欧美一区二区| 麻豆91在线观看| 成人福利在线看| 欧美在线观看视频一区二区 | 一区二区三区蜜桃网| 午夜精品久久久久久久99樱桃| 日韩成人一区二区三区在线观看| 久久aⅴ国产欧美74aaa| 成人app在线| 欧美日韩成人综合| 日本一区二区三区视频视频| 一区二区三区在线免费播放| 人人狠狠综合久久亚洲| 成人免费不卡视频| 9191成人精品久久| 国产精品伦一区| 日韩精品乱码av一区二区| 成人小视频在线| 欧美一区二区三区免费视频| 中文字幕不卡在线| 蜜桃av一区二区| 99精品久久久久久| 精品久久久久久久久久久久久久久久久 | 亚洲三级电影网站| 麻豆精品一区二区综合av| 91免费视频网| 国产欧美精品一区二区色综合朱莉| 一区二区三区欧美| 岛国av在线一区| 欧美zozozo| 天堂在线亚洲视频| 日本二三区不卡| 欧美韩国日本综合| 久久激情五月婷婷| 欧美日韩综合不卡| 亚洲欧美韩国综合色| 国产馆精品极品| 日韩一区二区在线观看视频| 一区二区三区中文在线| a在线欧美一区| 国产视频一区二区在线| 麻豆精品视频在线| 欧美精品乱人伦久久久久久| 最新国产の精品合集bt伙计| 国产一区二区导航在线播放| 4438亚洲最大| 午夜电影网亚洲视频| 在线看不卡av| 一区二区三区在线免费观看| 丁香婷婷综合激情五月色| 26uuu精品一区二区在线观看| 日韩成人免费电影| 欧美日韩国产免费一区二区| 一区二区三区蜜桃| 色综合中文综合网| 97久久超碰国产精品电影| 日本一区二区三区四区| 国产不卡视频一区二区三区| 久久久久亚洲蜜桃| 国产原创一区二区三区| 久久久噜噜噜久久人人看| 国模无码大尺度一区二区三区| 欧美一区二区久久久| 日韩国产精品久久久| 51精品秘密在线观看| 久久国产三级精品| 26uuu亚洲| 成人黄色av网站在线| 成人免费在线播放视频|