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

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

?? sstyleedits.pas

?? AlphaControls是一個Delphi標準控件的集合
?? PAS
?? 第 1 頁 / 共 4 頁
字號:
          end;
          1..4, 6: begin
            if Text = '' then Text := FOwner.FOwner.Name;
          end;
        end;
      end
      else begin
        if Text = '' then Text := FOwner.FOwner.Name;
      end;
{$ELSE}
      if Text = '' then Text := FOwner.FOwner.Name;
{$ENDIF}
      TsLabel(FOwner.FTheLabel).Caption := Text; //| Serge
      FOwner.FTheLabel.Visible := FOwner.FOwner.Visible;
      FOwner.FTheLabel.Enabled := FOwner.FOwner.Enabled;
//      TsLabel(FOwner.FTheLabel).ParentFont := True;
      FOwner.AlignLabel;
    end;
  end
  else begin
    if Active then begin
      if Assigned(FOwner.FTheLabel) then FreeAndNil(FOwner.FTheLabel);
      FActive := False;
    end;
  end;
end;

procedure TsStyleCaption.SetText(const Value: string);
begin
  FText := Value;
  if Active then begin
    TsLabel(FOwner.FTheLabel).Caption := Value;
    FOwner.AlignLabel;
  end;
end;

destructor TsStyleCaption.Destroy;
begin
  FreeAndNil(FFont);
  inherited;
end;

procedure TsStyleCaption.SetFont(const Value: TFont);
begin
  FFont.Assign(Value);
  if Active then begin
    TsLabel(FOwner.FTheLabel).Font.Assign(Value);
    FOwner.AlignLabel;
  end;
end;

procedure TsStyleCaption.SetMaxWidth(const Value: integer);
begin
  FMaxWidth := Value;
  if Active then begin
    FOwner.AlignLabel;
  end;
end;

procedure TsStyleCaption.SetLayout(const Value: sConst.TsCaptionLayout);
begin
  FLayout := Value;
  if Active then begin
    FOwner.AlignLabel;
  end;
end;

procedure TsCustomStyle.AlignLabel;
begin
  if Assigned(FTheLabel) and Assigned(FOwner.Parent) then begin
    TsLabel(FTheLabel).AutoSize := True;
    case Caption.Layout of
      sclLeft : begin
        TsLabel(FTheLabel).Alignment := taRightJustify;
        FTheLabel.Left := FOwner.Left - FTheLabel.Width - 4;
        FTheLabel.Top := FOwner.Top -
                         (GetFontHeight(TsLabel(FTheLabel).Font.Handle) - (FOwner.Height - 6)) div 2 +
                         6;
      end;
      sclTopLeft : begin
        TsLabel(FTheLabel).Alignment := taLeftJustify;
        FTheLabel.Left := FOwner.Left;
        FTheLabel.Top := FOwner.Top - GetFontHeight(TsLabel(FTheLabel).Font.Handle) + 5;
      end;
      sclTopCenter : begin
        TsLabel(FTheLabel).Alignment := taCenter;
        FTheLabel.Left := FOwner.Left + (FOwner.Width - FTheLabel.Width) div 2;
        FTheLabel.Top := FOwner.Top - GetFontHeight(TsLabel(FTheLabel).Font.Handle) + 5;
      end;
      sclTopRight : begin
        TsLabel(FTheLabel).Alignment := taRightJustify;
        FTheLabel.Left := FOwner.Left + FOwner.Width - FTheLabel.Width;
        FTheLabel.Top := FOwner.Top - GetFontHeight(TsLabel(FTheLabel).Font.Handle) + 5;
      end;
    end;
    if Caption.FMaxWidth <> 0 then begin
      TsLabel(FTheLabel).AutoSize := False;
      FTheLabel.Width := Caption.FMaxWidth;
      TsLabel(FTheLabel).WordWrap := True;
    end;
    TsLabel(FTheLabel).Transparent := True;
  end;
end;

{$IFDEF USEDB}
{ TsData }

constructor TsData.Create(AOwner: TsStyle);
begin
//  inherited Create;
  FOwner := TsStyle(AOwner);
  Allowing := TsAllowing.Create(AOwner);
end;

destructor TsData.Destroy;
begin
  FreeAndNil(FAllowing);
  inherited;
end;

procedure TsData.SetField(Value: TField);
begin
  if (FField <> Value) and Assigned(Value) then begin
    FField := Value;
//    Allowing.FAutoInit := True;
    case FField.FieldKind of
      fkData: begin
//        Allowing.FInsert := True;
//        Allowing.FUpdate := True;
      end;
      fkCalculated, fkLookup: begin
        Allowing.Insert := False;
        Allowing.Update := False;
      end;
    end;
    Case Value.DataType of
      ftUnknown, ftString, ftBytes, ftVarBytes, ftBlob, ftMemo, ftGraphic, ftFmtMemo,
      ftParadoxOle, ftDBaseOle, ftTypedBinary, ftFixedChar, ftWideString,
      ftVariant: begin
        IsNumber := False;
{        if Between(FOwner.COC, COC_TsEdit, COC_TsEdit) and Assigned(Value) then begin
          TsEdit(FOwner).MaxLength := Field.Size;
        end else if Between(FOwner.COC, COC_TsComboEdit, COC_TsComboEdit) and Assigned(Value) then begin
          TsComboEdit(FOwner).MaxLength := Field.Size;
        end
        else
        if Between(FOwner.COC, COC_TsCustomComboBox, COC_TsBDEComboBox) and Assigned(Value) then begin
          TsCustomCombobox(FOwner).MaxLength := Field.Size;
        end;}
      end;
      ftSmallint, ftInteger, ftWord, ftBoolean, ftFloat, ftCurrency, ftBCD,
      ftAutoInc, ftLargeint: begin
        IsNumber := True;
      end;
      ftDate, ftTime, ftDateTime : begin
        Self.IsNumber := False;
      end
    end;
  end;
  inherited;
end;
{$ENDIF}

{ TsPainting }

constructor TsPainting.Create(AOwner: TsEditorStyle);
begin
//  inherited Create;
  FBevel := ebAsBottomBorder;
  FColorBorderTop := clBtnHighlight;
  FColorBorderBottom := clBtnShadow;
  FColor := cl3DLight;
  FOwner := TsCustomStyle(AOwner);
  FColorBorderBottom := DefaultColorBottomBorder;
  FColor := DefaultColor;
end;

procedure TsPainting.SetBevel(const Value: TsEditorBevel);
begin
  if FBevel <> Value then begin
    FBevel := Value;
    FOwner.FOwner.Invalidate;
  end;
end;

procedure TsPainting.SetBevelWidth(const Value: integer);
begin
  if FBevelWidth <> Value then begin
    FBevelWidth := Value;
    FOwner.FOwner.Invalidate;
  end;
end;

procedure TsPainting.SetColors(Index: Integer; Value: TColor);
begin
//  Value := ColorToRGB(Value);
  case Index of
    0: FColorBorderTop := Value;
    1: FColorBorderBottom := Value;
    3: begin
      FColor := Value;
      FParentColor := False;
    end;
  end;
  try
    if Assigned(FOwner) and Assigned(FOwner.FOwner) then FOwner.FOwner.Invalidate;
  except
  end;
end;

procedure TsPainting.SetParentColor(Value: Boolean);
begin
  if Value <> FParentColor then begin
    if FOwner.COC in [COC_TsCheckedControl..COC_TsRadioButton] then begin
      FParentColor := True;
      FColor := TsHackedControl(FOwner.FOwner).Color;
      Exit;
    end;
    FParentColor := Value;
    TsHackedControl(FOwner.FOwner).ParentColor := Value;
    if Value then begin
      FColor := TsHackedControl(FOwner.FOwner).Color;
      FOwner.FOwner.invalidate;
    end;
  end;
end;

{ TsStyle }

constructor TsStyle.Create(AOwner: TControl);
begin
  inherited Create(AOwner);
{$IFDEF USEDB}
  FData := TsData.Create(Self);
{$ENDIF}
end;

procedure TsStyle.WndProc(var Message: TMessage);
begin
  case Message.Msg of
    SM_OFFSET..EM_CHANGEALL : begin
      if Message.Msg = SM_GETSTYLEINFO then begin
        TSMGetStyleInfo(Message).WParam := tos_SSTYLE;
        TSMGetStyleInfo(Message).LParam := Longint(Self);
        Message.Result := 1;
        Exit;
      end
      else sStyleMessage(Message);
    end
  end;
  inherited;
end;

procedure TsStyle.sStyleMessage(var Message: TMessage);
begin
  
end;

destructor TsStyle.Destroy;
begin
{$IFDEF USEDB}
  FreeAndNil(FData);
{$ENDIF}
  inherited;
end;

{ TsStyleDB }

procedure TsStyleDB.WndProc(var Message: TMessage);
begin
  case Message.Msg of
    SM_OFFSET..EM_CHANGEALL : begin
      if Message.Msg = SM_GETSTYLEINFO then begin
        TSMGetStyleInfo(Message).WParam := tos_SSTYLEDB;
        TSMGetStyleInfo(Message).LParam := Longint(Self);
        Message.Result := 1;
        Exit;
      end else sStyleMessage(Message);
    end
  end;
  inherited;
end;

procedure TsStyleDB.sStyleMessage(var Message: TMessage);
begin
  inherited;
end;

procedure BeveledBorder(DC: HDC; ColorTop, ColorBottom, Color: TColor; aRect: TRect; Width : integer; Bevel: TsEditorBevel; Soft : boolean);
var
//  i, w : integer;
  R: TRect;
  Color1, Color2 : TColor;
  TopBevel, BottomBevel: TsBorderStyle;
  procedure DrawRect; begin
    // Left line
    BeveledLine(dc, Color1, Color,
                Point(R.Left, R.Bottom - 1),
                Point(R.Left, R.Top),
                Width,
                TopBevel,
                sConst.sdLeft);
    // Top line
    BeveledLine(dc, Color1, Color,
                Point(R.Left, R.Top),
                Point(R.Right, R.Top),
                Width,
                TopBevel,
                sdTop);
    // Right line
    BeveledLine(dc, Color2, Color,
                Point(R.Right - 1, R.Top + 1),
                Point(R.Right - 1, R.Bottom - 1),
                Width,
                BottomBevel,
                sConst.sdRight);
    // Bottom Line
    BeveledLine(dc, Color2, Color,
                Point(R.Right - 1, R.Bottom - 1),
                Point(R.Left, R.Bottom - 1),
                Width,
                BottomBevel,
                sdBottom);
  end;
  procedure DrawRectSharp; begin
    // Left line
    SharpenLine(dc, Color1,
                Point(R.Left, R.Bottom - 1),
                Point(R.Left, R.Top),
                Width,
                TopBevel,
                sConst.sdLeft);
    // Top line
    SharpenLine(dc, Color1,
                Point(R.Left, R.Top),
                Point(R.Right, R.Top),
                Width,
                TopBevel,
                sdTop);
    // Right line
    SharpenLine(dc, Color2,
                Point(R.Right - 1, R.Top + 1),
                Point(R.Right - 1, R.Bottom - 1),
                Width,
                BottomBevel,
                sConst.sdRight);
    // Bottom Line
    SharpenLine(dc, Color2,
                Point(R.Right - 1, R.Bottom - 1),
                Point(R.Left, R.Bottom - 1),
                Width,
                BottomBevel,
                sdBottom);
  end;
begin
  Color1 := ColorTop;
  Color2 := ColorBottom;
  R := aRect;
  Case Bevel of
    ebAsTopBorder : begin
      Color1 := ColorTop;
      Color2 := Color1;
      TopBevel := bsFlat1;
      BottomBevel := bsFlat1;
    end;
    ebAsBottomBorder : begin
      Color1 := ColorBottom;
      Color2 := Color1;
      TopBevel := bsFlat2;
      BottomBevel := bsFlat2;
    end;
    ebRaised: begin
      TopBevel := sConst.bsRaised;
      BottomBevel := sConst.bsLowered;
    end;
    ebLowered: begin
      Color1 := ColorBottom;
      Color2 := ColorTop;
      BottomBevel := sConst.bsRaised;
      TopBevel := sConst.bsLowered;
    end;
  end;
  if not Soft then begin
    DrawRectSharp;
  end
  else begin
    DrawRect;
  end;
end;

end.





?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色一情一乱一乱一91av| 麻豆一区二区99久久久久| 精品亚洲国产成人av制服丝袜| 成人毛片老司机大片| 中文字幕在线免费不卡| 男女男精品视频网| 欧美日韩一级片在线观看| 国产精品毛片大码女人| 亚洲高清中文字幕| 成人ar影院免费观看视频| 日韩三级视频在线观看| 亚洲一区二区在线播放相泽| 高清成人在线观看| 精品三级在线看| 性感美女久久精品| 97国产精品videossex| 久久一区二区视频| 天堂久久一区二区三区| 色综合天天综合狠狠| 久久女同性恋中文字幕| 奇米影视在线99精品| 欧美亚洲高清一区二区三区不卡| 国产精品久久久久四虎| 国产高清无密码一区二区三区| 日韩欧美在线网站| 日韩av电影一区| 在线看日本不卡| 亚洲欧美综合网| 国产成人精品1024| 久久综合色综合88| 麻豆一区二区三区| 欧美va亚洲va香蕉在线| 日韩成人午夜电影| 亚洲一区欧美一区| 蜜桃视频一区二区三区在线观看 | 久久精品一区二区三区不卡| 老司机免费视频一区二区三区| 欧美浪妇xxxx高跟鞋交| 亚洲妇女屁股眼交7| 91福利精品第一导航| 一区二区在线观看视频| 色先锋aa成人| 亚洲综合色区另类av| 色久综合一二码| 亚洲男人天堂一区| 在线视频亚洲一区| 亚洲一二三区在线观看| 欧美在线观看18| 亚洲一区在线观看网站| 欧洲精品在线观看| 亚洲高清免费观看 | 国产99久久久久| 日本一区二区三区电影| 粉嫩av一区二区三区在线播放| 亚洲国产岛国毛片在线| 国产999精品久久| 中文字幕不卡在线观看| 成人激情免费网站| 亚洲嫩草精品久久| 欧美色倩网站大全免费| 亚洲国产精品一区二区www在线| 欧美色图免费看| 青娱乐精品在线视频| 欧美xxx久久| 国产精品99精品久久免费| 国产欧美日韩精品a在线观看| 成人午夜私人影院| 亚洲精品伦理在线| 欧美精品777| 久久精品国产一区二区三区免费看 | 麻豆freexxxx性91精品| 久久久影院官网| www.日韩av| 亚洲高清免费观看 | 欧美视频你懂的| 日本欧美韩国一区三区| 久久只精品国产| 成人免费观看视频| 亚洲国产精品久久久久婷婷884 | 欧美高清你懂得| 精品一区二区三区日韩| 久久精品视频免费| 91丨九色丨黑人外教| 亚洲成av人片在www色猫咪| 日韩欧美国产电影| 成人的网站免费观看| 亚洲高清一区二区三区| 精品久久久久久久久久久久久久久| 国产精品99精品久久免费| 亚洲精品中文在线影院| 日韩西西人体444www| 成人av网址在线观看| 午夜激情久久久| 久久精品亚洲一区二区三区浴池| 99久久婷婷国产精品综合| 制服丝袜亚洲色图| 一区二区三区在线播| 99久久99久久久精品齐齐| 视频一区在线播放| 欧美激情艳妇裸体舞| 欧美日韩在线综合| 国产成人高清在线| 视频在线观看一区| 日本一区二区三区视频视频| 欧美日本一区二区三区| 国产成人免费在线| 婷婷综合另类小说色区| 欧美激情一区二区三区| 欧美一区二区三区小说| zzijzzij亚洲日本少妇熟睡| 日韩高清在线一区| 亚洲欧美日韩中文字幕一区二区三区| 欧美一级一区二区| 色综合久久九月婷婷色综合| 激情文学综合网| 亚洲成人午夜电影| 中文字幕视频一区二区三区久| 日韩欧美视频一区| 91黄色小视频| 成人国产亚洲欧美成人综合网 | 久久免费看少妇高潮| 欧美日韩国产系列| 99久久亚洲一区二区三区青草| 免费精品视频最新在线| 一区二区三区波多野结衣在线观看| www久久精品| 8x8x8国产精品| 欧美亚洲丝袜传媒另类| zzijzzij亚洲日本少妇熟睡| 国产一区二三区| 日韩电影在线一区| 亚洲第一狼人社区| 亚洲美女精品一区| 亚洲欧洲国产日韩| 国产欧美日韩视频一区二区 | 日本精品视频一区二区| 国产精品99久久久久久有的能看| 日韩av一区二区在线影视| 亚洲一区影音先锋| 亚洲免费色视频| 亚洲婷婷综合久久一本伊一区| 久久蜜臀精品av| 欧美zozo另类异族| 婷婷综合另类小说色区| 欧美成人精品3d动漫h| 亚洲成a人片在线观看中文| 欧美影院午夜播放| 国产精品成人在线观看| 97se亚洲国产综合自在线不卡| 一个色综合网站| 在线成人免费观看| 欧洲精品视频在线观看| 91视频在线看| jiyouzz国产精品久久| 国产a级毛片一区| 国产成人精品1024| 国产久卡久卡久卡久卡视频精品| 麻豆久久一区二区| 精品在线一区二区三区| 六月丁香婷婷色狠狠久久| 青青草成人在线观看| 日韩av一二三| 六月婷婷色综合| 激情五月激情综合网| 国产综合色精品一区二区三区| 国产资源精品在线观看| 精品一区二区三区在线播放视频| 激情小说亚洲一区| 国产精品一区免费视频| 国产一区二区成人久久免费影院 | 国产欧美日韩精品在线| 久久精品这里都是精品| 久久精品一级爱片| 国产色综合一区| 国产清纯在线一区二区www| 中文字幕乱码久久午夜不卡| 国产精品毛片大码女人| 亚洲少妇30p| 亚洲五月六月丁香激情| 欧美精品高清视频| 欧洲av一区二区嗯嗯嗯啊| 国产一区二区三区在线观看精品| 国产伦理精品不卡| 成人亚洲精品久久久久软件| 北条麻妃一区二区三区| 一本高清dvd不卡在线观看| 欧美日韩视频第一区| 日韩一级大片在线| 精品一区二区在线播放| 国产成人精品亚洲777人妖| 97精品视频在线观看自产线路二| 色综合久久88色综合天天免费| 欧美日韩一区高清| 精品国产乱码久久久久久久| 亚洲国产精品精华液ab| 亚洲一区精品在线| 国产在线麻豆精品观看| 91免费观看国产| 日韩午夜激情视频| 日本一二三不卡|