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

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

?? sstyleedits.pas

?? AlphaControls是一個Delphi標準控件的集合
?? PAS
?? 第 1 頁 / 共 4 頁
字號:
        end;
      end;
    end;
  end;
  if s1 <> '' then Result := '(' + s1 + ') values (' + s2 + ')';
  List.Free;
end;

function GetUpdateText(Panel : TWinControl) : string;
var
  List : TList;
  i : integer;
  s : string;
  mStyle : TsStyle;
begin
  List := TList.Create;
  Panel.GetTabOrderList(List);
  if List.Count>0 then begin
    s := '';
    for i:=0 to List.Count-1 do begin
      if (GetStyleInfo(List[i]) = 5) then begin
        mStyle := TsStyle(GetsStyle(TWinControl(List[i])));
        if StyleIsActive(mStyle) and mStyle.Data.Allowing.Update and TControl(List[i]).Enabled then begin
          s := iff((s = ''), '', s + ', ');

          if Between(GetsStyle(List[i]).COC, COC_TsEdit, COC_TsMemo) then begin
            if TWinControl(List[i]) is TsMemo then
              s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsMemo(List[i]).sStyle.Data.IsNumber, '0' + CorrectString(TsMemo(List[i]).Text), '''' + CorrectString(TsMemo(List[i]).Text) + '''')
            else
              s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsEdit(List[i]).sStyle.Data.IsNumber, '0' + CorrectString(TsEdit(List[i]).Text), '''' + CorrectString(TsEdit(List[i]).Text) + '''');
          end else

          if Between(GetsStyle(List[i]).COC, COC_TsCustomComboBox, COC_TsBDEComboBox) then begin
            s := s + mStyle.Data.Field.FieldName + '=';
            if mStyle.Data.IsNumber then begin
              if TsCustomComboBox(List[i]).CharsInCode > 0 then begin
                s := s + IntToStr(TsCustomComboBox(List[i]).GetCurrentKod);
              end
              else if TsCustomComboBox(List[i]).UseItemIndex then begin
                s := s + IntToStr(TsCustomComboBox(List[i]).ItemIndex);
              end
              else begin
                s := s + '''' + CorrectString(TsCustomComboBox(List[i]).Text) + '''';
              end;
            end
            else begin
              s := s + '''' + CorrectString(TsCustomComboBox(List[i]).Text) + '''';
            end
          end else

          if Between(GetsStyle(List[i]).COC, COC_TsDateEdit, COC_TsDateEdit) then begin
            s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsDateEdit(List[i]).Text='  .  .    ', 'NULL', '''' + TsDateEdit(List[i]).Text + '''');
          end else

          if Between(GetsStyle(List[i]).COC, COC_TsCheckedControl, COC_TsRadioButton) then begin
            s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsCheckedControl(List[i]).Checked, '1', '0');
          end else

          if Between(GetsStyle(List[i]).COC, COC_TsCurrencyEdit, COC_TsCurrencyEdit) then begin
            s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsCurrencyEdit(List[i]).sStyle.Data.IsNumber, '0' + FloatToStr(TsCurrencyEdit(List[i]).Value), '''' + TsCurrencyEdit(List[i]).Text + '''');
          end else

{          if Between(GetsStyle(List[i]).COC, COC_TsPanel, COC_TsCustomPanel) then begin
              s := s + mStyle.Data.Field.FieldName + '=' +
                   iff(TsCustomPanel(List[i]).sStyle.Data.IsNumber, '0' + CorrectString(TsCustomPanel(List[i]).Caption), '''' + CorrectString(TsCustomPanel(List[i]).Caption) + '''');
          end;}
        end;
      end;
    end;
  end;
  if s <> '' then Result := s;
  List.Free;
end;
{$ENDIF}

{ TsEditorBorder }

constructor TsEditorBorder.Create(AOwner: TPersistent);
begin
  FBevel := ebAsBottomBorder;
  FOwner := AOwner;
  FWidth := 2;
end;

procedure TsEditorBorder.SetWidth(const Value: integer);
begin
  if FWidth <> Value then begin
    FWidth := Value;
  end;
end;

{ TsEditorSelection }

constructor TsEditorSelection.Create(AOwner: TPersistent);
begin
  FOwner := AOwner;
  FMode := [msBorder, msColor];
  FBorder := TsEditorBorder.Create(Self);
  FColor := clWindow;
end;

destructor TsEditorSelection.destroy;
begin
  FreeAndNil(FBorder);
  inherited;
end;

{ TAllowing }

{$IFDEF USEDB}
constructor TsAllowing.Create(AOwner : TsStyle);
begin
  inherited Create;
  FOwner    := TsStyle(AOwner);
  FAutoInit := True;
  FInsert   := True;
  FUpdate   := True;
end;

procedure TsAllowing.SetInsert(const Value: boolean);
begin
  if Assigned(FOwner.Data.FField) then begin
    case FOwner.Data.FField.FieldKind of 
      fkData: begin
        if FInsert <> Value then FInsert := Value;
      end;
      fkCalculated, fkLookup: begin
        FInsert := False;
      end;
    end;
  end;
end;

procedure TsAllowing.SetUpdate(const Value: boolean);
begin
  if Assigned(FOwner.Data.FField) then begin
    case FOwner.Data.FField.FieldKind of
      fkData: begin
        if FUpdate <> Value then FUpdate := Value;
      end;
      fkCalculated, fkLookup: begin
        FUpdate := False;
      end;
    end;
  end;
end;
{$ENDIF}


procedure TsEditorSelection.SetColor(const Value: TColor);
begin
  FColor := Value;
end;

procedure TsEditorSelection.SetMode(const Value: TModeSelection);
begin
  if (FMode <> Value) then begin
    FMode := Value;
  end;
end;

{ TsEditorStyle }

constructor TsEditorStyle.Create(AOwner : TControl);
begin
  inherited Create(AOwner);

  FPainting := TsPainting.Create(Self);
  FSelection := TsEditorSelection.Create(Self);

  FBorderWidth := 2;
{$IFNDEF ALITE}
  sC := GetsEditorsManager(GetOwnerForm(AOwner), GroupIndex);
  if not Assigned(sC) then begin
    FGroupIndex := 0;
  end
  else begin
    Painting.ParentColor := False;
    FGroupIndex := sC.GroupIndex;

    Painting.FColor := sC.Painting.Color;
    Painting.FColorBorderTop := sC.Painting.ColorBorderTop;
    Painting.FColorBorderBottom := sC.Painting.ColorBorderBottom;

    Selection.FColor := sC.Selection.Color;

    Effects.Shadow.FEnabled := not Effects.Shadow.FDontUse and sC.Shadow.Enabled;
    Effects.Shadow.FColor := sC.Shadow.Color;
    Effects.Shadow.FBlur := sC.Shadow.Blur;
    Effects.Shadow.FOffset := sC.Shadow.Offset;
    Effects.Shadow.Transparency := sC.Shadow.Transparency;
  end;
{$ENDIF}
//  FEditEffects := TsEditEffects.Create(Self);
end;

destructor TsEditorStyle.Destroy;
begin
//  FreeAndNil(FEditEffects);
  FreeAndNil(FPainting);
  FreeAndNil(FSelection);
  inherited Destroy;
end;

function TsEditorStyle.GetActiveColor: TColor;
begin
  if ControlIsActive and (msColor in GetSelMode) then begin
    Result := ColorToRGB(Selection.FColor);
    if SkinIndex > -1 then begin
      Result := gd[SkinIndex].SelectionColor;
    end;
  end
  else begin
    Result := ColorToRGB(Painting.FColor);
    if SkinIndex > -1 then begin
      Result := gd[SkinIndex].PaintingColor;
    end;
  end;
end;

procedure TsEditorStyle.PaintBorder(DC : hWnd; aRect : TsRect);
var
  R: TRect;
  i, bw : integer;
  Color1, Color2, ct, cb : TColor;
  eb : TsEditorBevel;
  procedure DrawRect; begin
    DrawRectangleOnDC(DC, R, ColorToRGB(Color1), ColorToRGB(Color2), i);
  end;
begin
  if Painting.Bevel = ebNone then Exit;
  if IsValidSkinIndex(SkinIndex) then begin
    ct := ColorToRGB(gd[SkinIndex].PaintingColorBorderTop);
    cb := ColorToRGB(gd[SkinIndex].PaintingColorBorderBottom);
  end
  else begin
    ct := ColorToRGB(Painting.ColorBorderTop);
    cb := ColorToRGB(Painting.ColorBorderBottom);
  end;
  Color1 := ct;
  Color2 := cb;
  R := aRect;
  if ControlIsActive and (msBorder in Selection.Mode) then begin
    if SkinIndex > -1 then begin
      eb := gd[SkinIndex].SelectionBorderBevel;
      bw := gd[SkinIndex].SelectionBorderWidth;
    end
    else begin
      eb := Selection.Border.Bevel;
      bw := Selection.Border.Width;
    end;
    if (eb = ebNone) then Exit;
    BeveledBorder(DC, Color1,
                    Color2,
                    GetActiveColor, R,
                    bw,
                    eb, SoftControl);
    if (bw > 1) and (eb = ebLowered) then begin
      i := 1;
      Color1 := clBtnShadow;
      Color2 := clWhite;
      DrawRect;
      i := 1;
      Color1 := cl3DDkShadow;
      Color2 := cl3DLight;
      R := aRect;
      InflateRect(R, - 1, - 1);
      DrawRect;
    end;
  end
  else begin
    if SkinIndex > -1 then begin
      eb := aEditorBevels[ord(gd[SkinIndex].PaintingBevel)];
      bw := gd[SkinIndex].PaintingBevelWidth;
    end
    else begin
      eb := Painting.Bevel;
      bw := Painting.BevelWidth;
    end;
    BeveledBorder(dc, ct, cb, GetActiveColor, R, bw, eb, SoftControl);
  end;
end;

procedure TsEditorStyle.RedrawBorder;
var
  DC: HDC;
  R, aRect: TRect;
  width : integer;
  ActiveColor : TColor;
  Mode : integer;
begin
  ActiveColor := GetActiveColor;
  DC := GetWindowDC(TWinControl(FOwner).Handle);
  try
{$IFNDEF ALITE}
      if ((COC = COC_TsMemo) or (COC = COC_TsDBMemo)) then begin
        if (TsMemo(FOwner).ScrollBars = ssBoth) then begin
          if sSkinData.Active then begin
            R := Rect(FOwner.Width - 19, 3, FOwner.Width - 3, FOwner.Height - 3);
            Width := 9;
            DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
            R := Rect(3, FOwner.Height - 19, FOwner.Width - 19, FOwner.Height - 3);
            Width := 9;
            DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
          end
          else begin
            R := Rect(FOwner.Width - 19, FOwner.Height - 19, FOwner.Width - 3, FOwner.Height - 3);
            Width := 9;
            DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
          end;
        end
        else if (TsMemo(FOwner).ScrollBars = ssHorizontal) and sSkinData.Active then begin
          R := Rect(3, FOwner.Height - 19, FOwner.Width - 3, FOwner.Height - 3);
          Width := 9;
          DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
        end
        else if (TsMemo(FOwner).ScrollBars = ssVertical) and sSkinData.Active then begin
          R := Rect(FOwner.Width - 19, 3, FOwner.Width - 3, FOwner.Height - 3);
          Width := 9;
          DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
        end;
      end else
      if (COC = COC_TsCustomListBox) then begin
        if TsListBox(FOwner).VSBar <> nil then begin
          R := Rect(FOwner.Width - 19, 3, FOwner.Width - 3, FOwner.Height - 3);
          Width := 9;
          DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);
        end;
      end;
{$ENDIF}


    width := BorderIndex;// GetMaskIndex(SkinIndex, SkinSection, BordersMask);
    if IsValidImgIndex(width) and (ma[Width].Bmp.Width > 0) then begin
      FCacheBmp.Width := FOwner.Width;
      FCacheBmp.Height := FOwner.Height;
      FCacheBmp.PixelFormat := pf24bit;
      FCacheBmp.Canvas.Brush.Color := ActiveColor;
      FCacheBmp.Canvas.FillRect(Rect(0, 0, FOwner.Width, FOwner.Height));

      if FFocused then begin
        Mode := 2;
      end
      else if ControlIsActive then begin
        Mode := 1;
      end
      else begin
        Mode := 0;
      end;

//      if RegionChanged then begin
        FRegion := 0;
        FRegion := CreateRectRgn(0,
                                0,
                                FOwner.Width,
                                FOwner.Height);
//      end;

      PaintRasterBorder(FCacheBmp, ma[Width].Bmp, Mode, FRegion, ma[Width].TransparentColor, False);

      BitBlt(DC, 0, 0, FOwner.Width, 3, FCacheBmp.Canvas.Handle, 0, 0, SRCCOPY);
      BitBlt(DC, 0, 3, 3, FOwner.Height, FCacheBmp.Canvas.Handle, 0, 3, SRCCOPY);
      BitBlt(DC, 3, FOwner.Height - 3, FOwner.Width, FOwner.Height, FCacheBmp.Canvas.Handle, 3, FOwner.Height - 3, SRCCOPY);
      BitBlt(DC, FOwner.Width - 3, 3, FOwner.Width, FOwner.Height - 3, FCacheBmp.Canvas.Handle, FOwner.Width - 3, 3, SRCCOPY);

//      if RegionChanged then begin
        SetWindowRgn(TWinControl(FOwner).Handle, FRegion, True);
        RegionChanged := False;
//      end;

    end
    else begin

    try
      aRect := Rect(0, 0, FOwner.Width, FOwner.Height);
      R := aRect;
      width := 3;
      DrawRectangleOnDC(DC, R, ActiveColor, ActiveColor, Width);

      PaintBorder(DC, aRect);
      except
//        ;
      end;

    end;

  finally
    ReleaseDC(TWinControl(FOwner).Handle, DC);
  end;
end;

{
procedure TsEditorStyle.RedrawBorder(DC: longint);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清视频一区二区| 欧美丰满高潮xxxx喷水动漫| 91免费国产在线| 欧美一区二区三区色| 国产精品免费丝袜| 美女久久久精品| 91麻豆文化传媒在线观看| 日韩视频免费观看高清完整版在线观看| 久久久久久久久久久久电影| 伊人色综合久久天天人手人婷| 国产美女在线观看一区| 欧美精品在线观看一区二区| 日韩伦理av电影| 国产精品一区二区你懂的| 欧美一级欧美一级在线播放| 亚洲欧洲色图综合| 国产91综合网| 久久伊99综合婷婷久久伊| 日韩在线观看一区二区| 欧美中文字幕不卡| 亚洲色图清纯唯美| jiyouzz国产精品久久| 国产日韩欧美a| 91浏览器在线视频| 国产亚洲精品中文字幕| 精品一区二区三区蜜桃| 91精品国产91久久综合桃花 | 久久国产精品99精品国产 | 亚洲色图视频网| 成人一区二区在线观看| 久久人人爽爽爽人久久久| 麻豆精品视频在线观看| 欧美一二三四区在线| 日韩二区在线观看| 3d动漫精品啪啪1区2区免费| 亚洲成人tv网| 在线成人av影院| 日韩国产精品久久久| 欧美精品在线一区二区| 蜜桃久久av一区| 精品福利二区三区| 狠狠久久亚洲欧美| 国产日韩欧美不卡| 91免费在线播放| 亚洲综合激情小说| 在线播放日韩导航| 精品制服美女丁香| 国产欧美综合在线观看第十页| 国产成人在线看| 中文字幕第一页久久| 92精品国产成人观看免费 | 欧美美女网站色| 免费观看日韩电影| 26uuu亚洲综合色欧美| 国产不卡在线播放| 亚洲乱码日产精品bd| 欧洲精品一区二区| 日韩电影免费在线观看网站| 精品福利视频一区二区三区| 成人丝袜18视频在线观看| 亚洲日本电影在线| 911精品国产一区二区在线| 狠狠色综合色综合网络| 国产精品免费看片| 欧美日韩你懂得| 国产精品自在在线| 亚洲视频狠狠干| 欧美成人伊人久久综合网| 成人黄色国产精品网站大全在线免费观看 | 亚洲综合在线免费观看| 日韩免费一区二区| av一本久道久久综合久久鬼色| 亚洲丰满少妇videoshd| 久久亚洲私人国产精品va媚药| 99久精品国产| 韩国av一区二区三区四区| 亚洲欧美怡红院| 精品国产污污免费网站入口 | 国产精选一区二区三区| 亚洲一级二级在线| 久久午夜国产精品| 欧美日韩国产综合一区二区三区| 久久99日本精品| 亚洲国产成人porn| 国产精品入口麻豆九色| 在线播放亚洲一区| 日本精品一区二区三区高清| 国产精品中文欧美| 爽好久久久欧美精品| 亚洲色图20p| 国产亚洲一区二区三区四区| 51精品秘密在线观看| 欧美亚洲综合久久| av在线一区二区| 大尺度一区二区| 国产一区不卡在线| 久久精品理论片| 日韩电影免费在线观看网站| 亚洲已满18点击进入久久| 亚洲国产高清在线观看视频| 欧美大尺度电影在线| 91精品欧美福利在线观看| 色呦呦国产精品| 99综合影院在线| 懂色av一区二区三区免费观看| 久久国产尿小便嘘嘘尿| 丝袜亚洲精品中文字幕一区| 一区二区欧美国产| 亚洲青青青在线视频| 国产精品人成在线观看免费| 久久久国产精品不卡| 欧美刺激脚交jootjob| 精品久久久久一区| 久久综合久久99| 久久蜜桃av一区二区天堂| 日韩亚洲欧美一区二区三区| 欧美日韩久久不卡| 欧美一区二区在线看| 欧美成人性战久久| 久久午夜老司机| 国产精品久久久一本精品| 国产欧美精品一区| 国产精品福利一区二区三区| 亚洲女与黑人做爰| 亚洲一区二区在线免费观看视频| 亚洲一区二区中文在线| 首页国产欧美日韩丝袜| 免费观看在线综合色| 激情六月婷婷综合| proumb性欧美在线观看| 在线观看视频一区二区| 欧美日韩一区三区四区| 91精品国产乱码| 久久视频一区二区| 中文字幕在线播放不卡一区| 亚洲欧美一区二区久久| 亚洲国产精品久久艾草纯爱| 麻豆精品国产91久久久久久| 国产乱子伦视频一区二区三区| 成人永久免费视频| 欧美午夜精品一区二区蜜桃| 欧美一区二区视频网站| 国产欧美一区视频| 亚洲黄色性网站| 九色综合国产一区二区三区| 成人av在线资源网| 91精品国产综合久久香蕉的特点| 精品国产3级a| 亚洲男人天堂av网| 国产在线精品不卡| 在线免费观看日本欧美| 欧美va亚洲va| 亚洲黄色免费网站| 久久99九九99精品| 色综合网站在线| 久久综合999| 亚洲小说春色综合另类电影| 国产九色精品成人porny| 欧美亚洲国产bt| 精品电影一区二区三区| 亚洲尤物在线视频观看| 国产精品一区二区久激情瑜伽| 欧美制服丝袜第一页| 国产性天天综合网| 美国一区二区三区在线播放| 91在线视频免费91| 精品国产乱码久久久久久闺蜜 | 天堂资源在线中文精品| 国产福利一区在线| 制服丝袜在线91| 亚洲欧美日韩一区二区| 国产精品综合二区| 欧美一卡2卡3卡4卡| 亚洲免费毛片网站| 福利一区福利二区| 日韩欧美在线不卡| 五月婷婷综合激情| 一本色道久久综合亚洲aⅴ蜜桃| 久久男人中文字幕资源站| 日韩国产欧美三级| 欧美日韩精品二区第二页| 中文字幕在线免费不卡| 高清成人免费视频| 国产日韩欧美综合在线| 蜜臀av亚洲一区中文字幕| 欧美三级乱人伦电影| 亚洲欧美日韩国产成人精品影院 | 欧美日韩电影在线| 最新不卡av在线| eeuss影院一区二区三区| 欧美成人精品高清在线播放| 青青国产91久久久久久| 欧美日韩一二区| 亚洲成人激情自拍| 欧美日韩精品一区视频| 五月天网站亚洲| 在线不卡中文字幕| 男女男精品视频| 欧美刺激脚交jootjob| 国模大尺度一区二区三区|