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

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

?? tflatgroupboxunit.pas

?? Oracle數(shù)據(jù)庫備份 寫入日志文件;并附有要使用的控件。
?? PAS
字號(hào):
unit TFlatGroupBoxUnit;

interface

{$I DFS.inc}

uses
  Windows, Messages, SysUtils, Forms, Classes, Graphics, Controls, ExtCtrls, FlatUtilitys;

type
  TFlatGroupBox = class(TCustomControl)
  private
    FTransparent: Boolean;
    FUseAdvColors: Boolean;
    FAdvColorBorder: TAdvColors;
    FBorderColor: TColor;
    FBorder: TGroupBoxBorder;
    procedure SetAdvColors (Index: Integer; Value: TAdvColors);
    procedure SetUseAdvColors (Value: Boolean);
    procedure CMEnabledChanged (var Message: TMessage); message CM_ENABLEDCHANGED;
    procedure CMTextChanged (var Message: TWmNoParams); message CM_TEXTCHANGED;
    procedure SetColors(const Index: Integer; const Value: TColor);
    procedure SetBorder(const Value: TGroupBoxBorder);
    procedure CMSysColorChange (var Message: TMessage); message CM_SYSCOLORCHANGE;
    procedure CMParentColorChanged (var Message: TWMNoParams); message CM_PARENTCOLORCHANGED;
    procedure CMDialogChar (var Message: TCMDialogChar); message CM_DIALOGCHAR;
    procedure WMSize (var Message: TWMSize); message WM_SIZE;
    procedure WMMove (var Message: TWMMove); message WM_MOVE;
    procedure SetTransparent (const Value: Boolean);
  protected
    procedure CalcAdvColors;
    procedure Paint; override;
   {$IFDEF DFS_COMPILER_4_UP}
    procedure SetBiDiMode(Value: TBiDiMode); override;
   {$ENDIF}
  public
    constructor Create (AOwner: TComponent); override;
  published
    property Transparent: Boolean read FTransparent write SetTransparent default false;
    property Align;
    property Cursor;
    property Caption;
    property Font;
    property ParentFont;
    property Color;
    property ParentColor;
    property PopupMenu;
    property ShowHint;
    property ParentShowHint;
    property Enabled;
    property Visible;
    property TabOrder;
    property TabStop;
    property Hint;
    property HelpContext;
    property ColorBorder: TColor index 0 read FBorderColor write SetColors default $008396A0;
    property Border: TGroupBoxBorder read FBorder write SetBorder default brFull;
    property AdvColorBorder: TAdvColors index 0 read FAdvColorBorder write SetAdvColors default 50;
    property UseAdvColors: Boolean read FUseAdvColors write SetUseAdvColors default false;
   {$IFDEF DFS_COMPILER_4_UP}
    property Anchors;
    property BiDiMode write SetBidiMode;
    property Constraints;
    property DragKind;
    property DragMode;
    property DragCursor;
    property ParentBiDiMode;
    property DockSite;
    property OnEndDock;
    property OnStartDock;
    property OnDockDrop;
    property OnDockOver;
    property OnGetSiteInfo;
    property OnUnDock;
   {$ENDIF}
   {$IFDEF DFS_DELPHI_5_UP}
    property OnContextPopup;
   {$ENDIF}
    property OnClick;
    property OnDblClick;
    property OnDragDrop;
    property OnDragOver;
    property OnEndDrag;
    property OnEnter;
    property OnExit;
    property OnMouseDown;
    property OnMouseMove;
    property OnMouseUp;
    property OnStartDrag;
  end;

implementation

{ TFlatGroupBox }

constructor TFlatGroupBox.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  ControlStyle := ControlStyle + [csAcceptsControls, csOpaque];
  FBorderColor := $008396A0;
  FAdvColorBorder := 50;
  SetBounds(0, 0, 185, 105);
end;

procedure TFlatGroupBox.Paint;
var
  memoryBitmap: TBitmap;
  borderRect, textBounds: TRect;
  textHeight, textWidth: integer;
  Format: UINT;
begin
  borderRect := ClientRect;
  {$IFDEF DFS_COMPILER_4_UP}
  if BidiMode = bdRightToLeft then
    Format := DT_TOP or DT_RIGHT or DT_SINGLELINE
  else
    Format := DT_TOP or DT_LEFT or DT_SINGLELINE;
  {$ELSE}
  Format := DT_TOP or DT_LEFT or DT_SINGLELINE;
  {$ENDIF}

  memoryBitmap := TBitmap.Create; // create memory-bitmap to draw flicker-free
  try
    memoryBitmap.Height := ClientRect.Bottom;
    memoryBitmap.Width := ClientRect.Right;
    memoryBitmap.Canvas.Font := Self.Font;

    textHeight := memoryBitmap.canvas.TextHeight(caption);
    textWidth := memoryBitmap.Canvas.TextWidth(caption);

    {$IFDEF DFS_COMPILER_4_UP}
    if BidiMode = bdRightToLeft then
      textBounds := Rect(ClientRect.Right - 10 - textWidth, ClientRect.Top,
        ClientRect.Right - 10 , ClientRect.Top + textHeight)
    else
      textBounds := Rect(ClientRect.Left + 10, ClientRect.Top,
        ClientRect.Left + 10 + textWidth,
        ClientRect.Top + textHeight);
    {$ELSE}
    textBounds := Rect(ClientRect.Left + 10, ClientRect.Top,
      ClientRect.Left + 10 + textWidth,
      ClientRect.Top + textHeight);
    {$ENDIF}
    textBounds := Rect(ClientRect.Left + 10, ClientRect.Top,
      ClientRect.Right - 10,
      ClientRect.Top + textHeight);

    // Draw Background
    if FTransparent then
      DrawParentImage(Self, memoryBitmap.Canvas)
    else
    begin
      memoryBitmap.Canvas.Brush.Color := Self.Color;
      memoryBitmap.Canvas.FillRect(ClientRect);
    end;

    // Draw Border
    memoryBitmap.Canvas.Pen.Color := FBorderColor;
    case FBorder of
      brFull:
        {$IFDEF DFS_COMPILER_4_UP}
        if BidiMode = bdRightToLeft then
          memoryBitmap.Canvas.Polyline([Point(ClientRect.Right - 15 - textWidth, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.left, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.left, ClientRect.bottom-1), Point(ClientRect.right-1, ClientRect.bottom-1),
            Point(ClientRect.right-1, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.Right - 7 , ClientRect.top + (textHeight div 2))])
        else
          memoryBitmap.Canvas.Polyline([Point(ClientRect.left + 5, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.left, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.left, ClientRect.bottom-1), Point(ClientRect.right-1, ClientRect.bottom-1),
            Point(ClientRect.right-1, ClientRect.top + (textHeight div 2)),
            Point(ClientRect.left + 12 + textWidth, ClientRect.top + (textHeight div 2))]);
        {$ELSE}
        memoryBitmap.Canvas.Polyline([Point(ClientRect.left + 5, ClientRect.top + (textHeight div 2)),
          Point(ClientRect.left, ClientRect.top + (textHeight div 2)),
          Point(ClientRect.left, ClientRect.bottom-1), Point(ClientRect.right-1, ClientRect.bottom-1),
          Point(ClientRect.right-1, ClientRect.top + (textHeight div 2)),
          Point(ClientRect.left + 12 + textWidth, ClientRect.top + (textHeight div 2))]);
        {$ENDIF}
      brOnlyTopLine:
        {$IFDEF DFS_COMPILER_4_UP}
        if BidiMode = bdRightToLeft then
        begin
          memoryBitmap.Canvas.Polyline([Point(ClientRect.right - 5, ClientRect.top + (textHeight div 2)), Point(ClientRect.right, ClientRect.top + (textHeight div 2))]);
          memoryBitmap.Canvas.Polyline([Point(ClientRect.left+1, ClientRect.top + (textHeight div 2)), Point(ClientRect.right - 12 - textWidth, ClientRect.top + (textHeight div 2))]);
        end
        else
        begin
          memoryBitmap.Canvas.Polyline([Point(ClientRect.left + 5, ClientRect.top + (textHeight div 2)), Point(ClientRect.left, ClientRect.top + (textHeight div 2))]);
          memoryBitmap.Canvas.Polyline([Point(ClientRect.right-1, ClientRect.top + (textHeight div 2)), Point(ClientRect.left + 12 + textWidth, ClientRect.top + (textHeight div 2))]);
        end;
        {$ELSE}
        begin
          memoryBitmap.Canvas.Polyline([Point(ClientRect.left + 5, ClientRect.top + (textHeight div 2)), Point(ClientRect.left, ClientRect.top + (Canvas.textHeight(caption) div 2))]);
          memoryBitmap.Canvas.Polyline([Point(ClientRect.right-1, ClientRect.top + (textHeight div 2)), Point(ClientRect.left + 12 + textWidth, ClientRect.top + (textHeight div 2))]);
        end;
        {$ENDIF}
    end;

    // Draw Text
    memoryBitmap.Canvas.Brush.Style := bsClear;
    if not Enabled then
    begin
      OffsetRect(textBounds, 1, 1);
      memoryBitmap.Canvas.Font.Color := clBtnHighlight;
      DrawText(memoryBitmap.Canvas.Handle, PChar(Caption), Length(Caption), textBounds, Format);
      OffsetRect(textBounds, -1, -1);
      memoryBitmap.Canvas.Font.Color := clBtnShadow;
      DrawText(memoryBitmap.Canvas.Handle, PChar(Caption), Length(Caption), textBounds, Format);
    end
    else
      DrawText(memoryBitmap.Canvas.Handle, PChar(Caption), Length(Caption), textBounds, Format);

    // Copy memoryBitmap to screen
    canvas.CopyRect(ClientRect, memoryBitmap.canvas, ClientRect);
  finally
    memoryBitmap.free; // delete the bitmap
  end;
end;

procedure TFlatGroupBox.CMTextChanged (var Message: TWmNoParams);
begin
  inherited;
  Invalidate;
end;

procedure TFlatGroupBox.SetColors(const Index: Integer;
  const Value: TColor);
begin
  case Index of
    0: FBorderColor := Value;
  end;
  Invalidate;
end;

procedure TFlatGroupBox.SetBorder(const Value: TGroupBoxBorder);
begin
  FBorder := Value;
  Invalidate;
end;

procedure TFlatGroupBox.SetAdvColors(Index: Integer; Value: TAdvColors);
begin
  case Index of
    0: FAdvColorBorder := Value;
  end;
  CalcAdvColors;
  Invalidate;
end;

procedure TFlatGroupBox.SetUseAdvColors(Value: Boolean);
begin
  if Value <> FUseAdvColors then
  begin
    FUseAdvColors := Value;
    ParentColor := Value;
    CalcAdvColors;
    Invalidate;
  end;
end;

procedure TFlatGroupBox.CalcAdvColors;
begin
  if FUseAdvColors then
  begin
    FBorderColor := CalcAdvancedColor(Color, FBorderColor, FAdvColorBorder, darken);
  end;
end;

procedure TFlatGroupBox.CMParentColorChanged(var Message: TWMNoParams);
begin
  inherited;
  if FUseAdvColors then
  begin
    ParentColor := True;
    CalcAdvColors;
  end;
  Invalidate;
end;

procedure TFlatGroupBox.CMSysColorChange(var Message: TMessage);
begin
  if FUseAdvColors then
  begin
    ParentColor := True;
    CalcAdvColors;
  end;
  Invalidate;
end;

procedure TFlatGroupBox.CMDialogChar(var Message: TCMDialogChar);
begin
  with Message do
    if IsAccel(Message.CharCode, Caption) and CanFocus then
    begin
      SetFocus; 
      Result := 1;
    end;
end;

procedure TFlatGroupBox.CMEnabledChanged(var Message: TMessage);
begin
  inherited;
  Invalidate;
end;

procedure TFlatGroupBox.SetTransparent(const Value: Boolean);
begin
  FTransparent := Value;
  Invalidate;
end;

procedure TFlatGroupBox.WMMove(var Message: TWMMove);
begin
  inherited;
  if FTransparent then
    Invalidate;
end;

procedure TFlatGroupBox.WMSize(var Message: TWMSize);
begin
  inherited;
  if FTransparent then
    Invalidate;
end;

{$IFDEF DFS_COMPILER_4_UP}
procedure TFlatGroupBox.SetBiDiMode(Value: TBiDiMode);
begin
  inherited;
  Invalidate;
end;
{$ENDIF}

end.


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人vr18sexvr| 26uuu另类欧美亚洲曰本| 92国产精品观看| 欧美精品一区二区在线观看| 精品一区二区av| 久久久不卡影院| 成人激情免费电影网址| 亚洲码国产岛国毛片在线| 色哟哟在线观看一区二区三区| 一本久道久久综合中文字幕 | 久久精品视频一区二区| 蜜臀av性久久久久av蜜臀妖精 | 欧美一级久久久| 免费看欧美女人艹b| 精品国一区二区三区| 91成人看片片| 免费欧美日韩国产三级电影| 中文字幕综合网| 4438亚洲最大| 高清国产一区二区| 亚洲午夜精品网| 精品少妇一区二区三区日产乱码| 欧美性受xxxx| 激情文学综合插| 一区二区三区四区精品在线视频| 日韩一级免费观看| 精品1区2区3区| 国产精品综合二区| 一区二区在线看| 国产日韩欧美亚洲| 成人美女视频在线看| 亚洲视频1区2区| 国产日韩欧美激情| 精品久久国产老人久久综合| 欧美夫妻性生活| av成人免费在线| 日本不卡视频一二三区| 亚洲国产日日夜夜| 亚洲成国产人片在线观看| 久久先锋影音av| 日韩精品资源二区在线| 色婷婷精品久久二区二区蜜臂av| 成人av先锋影音| 成人a级免费电影| 菠萝蜜视频在线观看一区| www.在线欧美| 色综合久久综合中文综合网| 91国产免费看| 亚洲影视资源网| 91美女在线观看| 狠狠色狠狠色综合| 久久99精品国产.久久久久| 麻豆国产精品视频| 国产一区二区精品久久| 五月天婷婷综合| 亚洲乱码精品一二三四区日韩在线 | 午夜电影网一区| 日韩国产高清影视| 洋洋成人永久网站入口| 亚洲18女电影在线观看| 手机精品视频在线观看| 亚洲一区视频在线观看视频| 亚洲一区二区精品视频| 日本不卡一区二区| 韩日欧美一区二区三区| 成人午夜精品在线| 在线免费不卡视频| 91在线视频播放| 欧美三级视频在线| 精品久久久久av影院| 国产精品久久久久婷婷| 欧美国产日韩精品免费观看| 久久久综合网站| 亚洲日本va午夜在线影院| 亚洲成a人v欧美综合天堂| 精品一区二区三区影院在线午夜| 国产成人免费在线视频| 国产成人综合亚洲91猫咪| 91麻豆国产福利精品| 欧美一级黄色大片| 国产三级久久久| 亚洲综合色噜噜狠狠| 麻豆精品一区二区| 92国产精品观看| 91精品国产aⅴ一区二区| 91精品国产综合久久久久久久久久 | 色综合咪咪久久| 精品久久人人做人人爽| 中文字幕亚洲一区二区av在线| 亚洲欧洲99久久| 蜜臀va亚洲va欧美va天堂| 成人教育av在线| 91精品国产综合久久久久久久久久| 国产日韩成人精品| 亚洲成人福利片| 波多野洁衣一区| 欧美不卡一区二区三区| 亚洲黄色av一区| 国产精品自在欧美一区| 欧美日韩国产片| 精品乱码亚洲一区二区不卡| 亚洲激情图片一区| 国产白丝精品91爽爽久久| 欧美一级艳片视频免费观看| 国产精品亚洲人在线观看| 欧美精品在线观看一区二区| 欧美高清在线一区| 精品在线你懂的| 欧美一区二区三区啪啪| 伊人性伊人情综合网| 丁香亚洲综合激情啪啪综合| 日韩精品中文字幕一区| 亚洲尤物视频在线| 91丨九色porny丨蝌蚪| 久久久亚洲国产美女国产盗摄| 五月天网站亚洲| 欧美色窝79yyyycom| 国产精品久久久久一区二区三区 | 国产精品久久久久9999吃药| 九九九精品视频| 3d动漫精品啪啪1区2区免费| 亚洲伊人伊色伊影伊综合网| 99re这里只有精品视频首页| 日本一区二区三区久久久久久久久不 | 日本v片在线高清不卡在线观看| 一本久久精品一区二区| 国产精品国产三级国产普通话蜜臀 | 日韩三级在线免费观看| 伊人性伊人情综合网| 成人av综合在线| 中文字幕欧美国产| 国产成人av资源| 久久久国产精品麻豆| 激情六月婷婷综合| 精品国产一区二区在线观看| 免费观看91视频大全| 欧美精品电影在线播放| 首页国产丝袜综合| 欧美性色aⅴ视频一区日韩精品| 亚洲欧美激情一区二区| 97精品视频在线观看自产线路二| 中文字幕亚洲电影| jlzzjlzz亚洲女人18| 成人欧美一区二区三区白人| 91丝袜美腿高跟国产极品老师| 亚洲欧美日韩一区二区 | 亚洲欧美另类小说视频| 色屁屁一区二区| 一区二区三区波多野结衣在线观看| 色狠狠综合天天综合综合| 一区二区三区在线视频免费 | 色综合久久久久| 亚洲国产精品一区二区www在线| 欧美丝袜第三区| 日韩av一区二区在线影视| 精品日韩99亚洲| 成人性生交大片免费看中文| 欧美精品第一页| 91成人看片片| 视频一区视频二区中文字幕| 91精品国产一区二区| 久久99精品国产麻豆婷婷 | 精品区一区二区| 国产精品综合视频| 亚洲欧洲制服丝袜| 欧美一区二区在线免费观看| 国产精品一区二区无线| 亚洲欧美怡红院| 欧美精品第1页| 国产激情视频一区二区三区欧美| 亚洲精品日日夜夜| 欧美一级一级性生活免费录像| 国产99久久久久| 亚洲一二三四久久| 2020国产精品| 91久久人澡人人添人人爽欧美| 麻豆精品一区二区综合av| 1区2区3区国产精品| 91精品国产乱| av高清久久久| 美国一区二区三区在线播放| 国产精品视频你懂的| 91在线国产观看| 亚洲一二三四久久| 国产日产欧美一区二区三区| 成人午夜激情影院| 午夜精品福利一区二区蜜股av| 国产亚洲女人久久久久毛片| 欧美亚洲动漫精品| 国产精品一区二区三区乱码| 亚洲综合一区在线| 久久精品夜色噜噜亚洲aⅴ| 欧美性大战久久久久久久| 国产成人亚洲精品青草天美| 午夜精品视频一区| 1024精品合集| 久久久综合九色合综国产精品| 欧美日韩一区小说| 播五月开心婷婷综合| 国内一区二区视频|