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

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

?? tntdbctrls.pas

?? TNT Components Source
?? PAS
?? 第 1 頁 / 共 5 頁
字號(hào):
              S := Tnt_WideLowerCase(S);
          end;
        end else
          S := Text { EditText? };
        if PasswordChar <> #0 then
          for I := 1 to Length(S) do S[I] := PasswordChar;
        _Margins := GetTextMargins;
        case AAlignment of
          taLeftJustify: ALeft := _Margins.X;
          taRightJustify: ALeft := ClientWidth - WideCanvasTextWidth(FCanvas, S) - _Margins.X - 1;
        else
          ALeft := (ClientWidth - WideCanvasTextWidth(FCanvas, S)) div 2;
        end;
        if SysLocale.MiddleEast then UpdateTextFlags;
        WideCanvasTextRect(FCanvas, R, ALeft, _Margins.Y, S);
      end;
    finally
      FCanvas.Handle := 0;
      if Message.DC = 0 then EndPaint(Handle, PS);
    end;
  end;
end;

function TTntDBEdit.GetTextMargins: TPoint;
var
  DC: HDC;
  SaveFont: HFont;
  I: Integer;
  SysMetrics, Metrics: TTextMetric;
begin
  if NewStyleControls then
  begin
    if BorderStyle = bsNone then I := 0 else
      if Ctl3D then I := 1 else I := 2;
    Result.X := SendMessage(Handle, EM_GETMARGINS, 0, 0) and $0000FFFF + I;
    Result.Y := I;
  end else
  begin
    if BorderStyle = bsNone then I := 0 else
    begin
      DC := GetDC(0);
      GetTextMetrics(DC, SysMetrics);
      SaveFont := SelectObject(DC, Font.Handle);
      GetTextMetrics(DC, Metrics);
      SelectObject(DC, SaveFont);
      ReleaseDC(0, DC);
      I := SysMetrics.tmHeight;
      if I > Metrics.tmHeight then I := Metrics.tmHeight;
      I := I div 4;
    end;
    Result.X := I;
    Result.Y := I;
  end;
end;

{ TTntDBText }

constructor TTntDBText.Create(AOwner: TComponent);
begin
  inherited;
  FDataLink := TDataLink(Perform(CM_GETDATALINK, 0, 0)) as TFieldDataLink;
  InheritedDataChange := FDataLink.OnDataChange;
  FDataLink.OnDataChange := DataChange;
end;

destructor TTntDBText.Destroy;
begin
  FDataLink := nil;
  inherited;
end;

procedure TTntDBText.CMDialogChar(var Message: TCMDialogChar);
begin
  TntLabel_CMDialogChar(Self, Message, Caption);
end;

function TTntDBText.IsCaptionStored: Boolean;
begin
  Result := TntControl_IsCaptionStored(Self)
end;

function TTntDBText.GetCaption: TWideCaption;
begin
  Result := TntControl_GetText(Self);
end;

procedure TTntDBText.SetCaption(const Value: TWideCaption);
begin
  TntControl_SetText(Self, Value);
end;

procedure TTntDBText.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

function TTntDBText.GetLabelText: WideString;
begin
  if csPaintCopy in ControlState then
    Result := GetFieldText
  else
    Result := Caption;
end;

procedure TTntDBText.DoDrawText(var Rect: TRect; Flags: Integer);
begin
  if not TntLabel_DoDrawText(Self, Rect, Flags, GetLabelText) then
    inherited;
end;

function TTntDBText.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self);
end;

function TTntDBText.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self)
end;

procedure TTntDBText.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntDBText.CMHintShow(var Message: TMessage);
begin
  ProcessCMHintShowMsg(Message);
  inherited;
end;

procedure TTntDBText.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  inherited;
end;

function TTntDBText.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

function TTntDBText.GetFieldText: WideString;
begin
  if Field <> nil then
    Result := GetWideDisplayText(Field)
  else
    if csDesigning in ComponentState then Result := Name else Result := '';
end;

procedure TTntDBText.DataChange(Sender: TObject);
begin
  Caption := GetFieldText;
end;

{ TTntCustomDBComboBox }

constructor TTntCustomDBComboBox.Create(AOwner: TComponent);
begin
  inherited;
  FItems := TTntComboBoxStrings.Create;
  TTntComboBoxStrings(FItems).ComboBox := Self;
  FDataLink := TDataLink(Perform(CM_GETDATALINK, 0, 0)) as TFieldDataLink;
  FDataLink.OnDataChange := DataChange;
  FDataLink.OnUpdateData := UpdateData;
  FDataLink.OnEditingChange := EditingChange;
end;

destructor TTntCustomDBComboBox.Destroy;
begin
  FreeAndNil(FItems);
  FreeAndNil(FSaveItems);
  FDataLink := nil;
  inherited;
end;

procedure TTntCustomDBComboBox.CreateWindowHandle(const Params: TCreateParams);
begin
  CreateUnicodeHandle(Self, Params, 'COMBOBOX');
end;

procedure TTntCustomDBComboBox.DefineProperties(Filer: TFiler);
begin
  inherited;
  TntPersistent_AfterInherited_DefineProperties(Filer, Self);
end;

type
  TAccessCustomComboBox = class(TCustomComboBox{TNT-ALLOW TCustomComboBox});

procedure TTntCustomDBComboBox.CreateWnd;
var
  PreInheritedAnsiText: AnsiString;
begin
  PreInheritedAnsiText := TAccessCustomComboBox(Self).Text;
  inherited;
  TntCombo_AfterInherited_CreateWnd(Self, Items, FSaveItems, FSaveItemIndex, PreInheritedAnsiText);
end;

procedure TTntCustomDBComboBox.DestroyWnd;
var
  SavedText: WideString;
begin
  if not (csDestroyingHandle in ControlState) then begin { avoid recursion when parent is TToolBar and system font changes. }
    TntCombo_BeforeInherited_DestroyWnd(Self, Items, FSaveItems, ItemIndex, FSaveItemIndex, SavedText);
    inherited;
    TntControl_SetStoredText(Self, SavedText);
  end;
end;

procedure TTntCustomDBComboBox.SetReadOnly;
begin
  if (Style in [csDropDown, csSimple]) and HandleAllocated then
    SendMessage(EditHandle, EM_SETREADONLY, Ord(not FDataLink.CanModify), 0);
end;

procedure TTntCustomDBComboBox.EditingChange(Sender: TObject);
begin
  SetReadOnly;
end;

procedure TTntCustomDBComboBox.CMEnter(var Message: TCMEnter);
var
  SaveFarEast: Boolean;
begin
  SaveFarEast := SysLocale.FarEast;
  try
    SysLocale.FarEast := False;
    inherited; // inherited tries to work around Win95 FarEast bug, but introduces others
  finally
    SysLocale.FarEast := SaveFarEast;
  end;
end;

procedure TTntCustomDBComboBox.WndProc(var Message: TMessage);
begin
  if (not (csDesigning in ComponentState))
  and (Message.Msg = CB_SHOWDROPDOWN)
  and (Message.WParam = 0)
  and (not FDataLink.Editing) then begin
    DataChange(Self); {Restore text}
    Dispatch(Message); {Do NOT call inherited!}
  end else
    inherited WndProc(Message);
end;

procedure TTntCustomDBComboBox.ComboWndProc(var Message: TMessage; ComboWnd: HWnd; ComboProc: Pointer);
begin
  if not TntCombo_ComboWndProc(Self, Message, ComboWnd, ComboProc, DoEditCharMsg) then
    inherited;
end;

procedure TTntCustomDBComboBox.KeyPress(var Key: AnsiChar);
var
  SaveAutoComplete: Boolean;
begin
  TntCombo_BeforeKeyPress(Self, SaveAutoComplete);
  try
    inherited;
  finally
    TntCombo_AfterKeyPress(Self, SaveAutoComplete);
  end;
end;

procedure TTntCustomDBComboBox.DoEditCharMsg(var Message: TWMChar);
begin
  TntCombo_AutoCompleteKeyPress(Self, Items, Message,
    GetAutoComplete_UniqueMatchOnly, GetAutoComplete_PreserveDataEntryCase);
end;

procedure TTntCustomDBComboBox.WMChar(var Message: TWMChar);
begin
  TntCombo_AutoSearchKeyPress(Self, Items, Message, FFilter, FLastTime);
  inherited;
end;

function TTntCustomDBComboBox.GetItems: TTntStrings;
begin
  Result := FItems;
end;

procedure TTntCustomDBComboBox.SetItems(const Value: TTntStrings);
begin
  FItems.Assign(Value);
  DataChange(Self);
end;

function TTntCustomDBComboBox.GetSelStart: Integer;
begin
  Result := TntCombo_GetSelStart(Self);
end;

procedure TTntCustomDBComboBox.SetSelStart(const Value: Integer);
begin
  TntCombo_SetSelStart(Self, Value);
end;

function TTntCustomDBComboBox.GetSelLength: Integer;
begin
  Result := TntCombo_GetSelLength(Self);
end;

procedure TTntCustomDBComboBox.SetSelLength(const Value: Integer);
begin
  TntCombo_SetSelLength(Self, Value);
end;

function TTntCustomDBComboBox.GetSelText: WideString;
begin
  Result := TntCombo_GetSelText(Self);
end;

procedure TTntCustomDBComboBox.SetSelText(const Value: WideString);
begin
  TntCombo_SetSelText(Self, Value);
end;

function TTntCustomDBComboBox.GetText: WideString;
begin
  Result := TntControl_GetText(Self);
end;

procedure TTntCustomDBComboBox.SetText(const Value: WideString);
begin
  TntControl_SetText(Self, Value);
end;

procedure TTntCustomDBComboBox.CNCommand(var Message: TWMCommand);
begin
  if not TntCombo_CNCommand(Self, Items, Message) then
    inherited;
end;

function TTntCustomDBComboBox.GetFieldValue: Variant;
begin
  Result := Field.Value;
end;

procedure TTntCustomDBComboBox.SetFieldValue(const Value: Variant);
begin
  Field.Value := Value;
end;

procedure TTntCustomDBComboBox.DataChange(Sender: TObject);
begin
  if not (Style = csSimple) and DroppedDown then Exit;
  if Field <> nil then
    SetComboValue(GetFieldValue)
  else
    if csDesigning in ComponentState then
      SetComboValue(Name)
    else
      SetComboValue(Null);
end;

procedure TTntCustomDBComboBox.UpdateData(Sender: TObject);
begin
  SetFieldValue(GetComboValue);
end;

function TTntCustomDBComboBox.GetAutoComplete_PreserveDataEntryCase: Boolean;
begin
  Result := True;
end;

function TTntCustomDBComboBox.GetAutoComplete_UniqueMatchOnly: Boolean;
begin
  Result := False;
end;

function TTntCustomDBComboBox.IsHintStored: Boolean;
begin
  Result := TntControl_IsHintStored(Self);
end;

function TTntCustomDBComboBox.GetHint: WideString;
begin
  Result := TntControl_GetHint(Self)
end;

procedure TTntCustomDBComboBox.SetHint(const Value: WideString);
begin
  TntControl_SetHint(Self, Value);
end;

procedure TTntCustomDBComboBox.AddItem(const Item: WideString; AObject: TObject);
begin
  TntComboBox_AddItem(Items, Item, AObject);
end;

procedure TTntCustomDBComboBox.CopySelection(Destination: TCustomListControl);
begin
  TntComboBox_CopySelection(Items, ItemIndex, Destination);
end;

procedure TTntCustomDBComboBox.ActionChange(Sender: TObject; CheckDefaults: Boolean);
begin
  TntControl_BeforeInherited_ActionChange(Self, Sender, CheckDefaults);
  inherited;
end;

function TTntCustomDBComboBox.GetActionLinkClass: TControlActionLinkClass;
begin
  Result := TntControl_GetActionLinkClass(Self, inherited GetActionLinkClass);
end;

{$IFDEF DELPHI_7} // fix for Delphi 7 only
function TTntCustomDBComboBox.GetItemsClass: TCustomComboBoxStringsClass;
begin
  Result := TD7PatchedComboBoxStrings;
end;
{$ENDIF}

{ TTntDBComboBox }

function TTntDBComboBox.GetFieldValue: Variant;
begin
  Result := GetWideText(Field);
end;

procedure TTntDBComboBox.SetFieldValue(const Value: Variant);
begin
  SetWideText(Field, Value);
end;

procedure TTntDBComboBox.SetComboValue(const Value: Variant);
var
  I: Integer;
  Redraw: Boolean;
  OldValue: WideString;
  NewValue: WideString;
begin
  OldValue := VarToWideStr(GetComboValue);
  NewValue := VarToWideStr(Value);

  if NewValue <> OldValue then
  begin
    if Style <> csDropDown then
    begin

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧美日韩日本| 丝袜美腿亚洲一区二区图片| 日韩欧美在线123| 欧美精品九九99久久| 在线免费观看日韩欧美| 色综合天天综合网国产成人综合天 | 亚洲欧美日本韩国| 日韩毛片高清在线播放| 亚洲视频综合在线| 一区二区三区国产| 亚洲综合一区在线| 午夜精品国产更新| 日韩一区精品字幕| 国模冰冰炮一区二区| 国产精品资源在线观看| 国产成人av电影在线观看| 国产精品一二三四五| 成人一区在线观看| 成人午夜私人影院| 91久久精品日日躁夜夜躁欧美| 99久久国产综合色|国产精品| 99精品欧美一区| 欧美高清你懂得| 欧美福利电影网| 精品成人在线观看| 中文字幕日本不卡| 日韩主播视频在线| 国产精品99久久久久| 在线观看亚洲专区| 精品国产乱码久久| 亚洲免费观看高清完整版在线| 无吗不卡中文字幕| 丰满白嫩尤物一区二区| 91久久精品网| 久久午夜免费电影| 亚洲精品乱码久久久久久| 精品一区二区三区在线观看| bt欧美亚洲午夜电影天堂| 欧美日韩一区小说| 国产欧美一区二区精品久导航| 亚洲女厕所小便bbb| 另类调教123区| 在线免费精品视频| 中文字幕精品—区二区四季| 亚洲一区二区三区小说| 国产精品99久| 91精品国产全国免费观看| 中文字幕高清一区| 日本欧美加勒比视频| 97久久精品人人做人人爽50路| 日韩一区二区视频在线观看| 日韩美女视频一区| 国产一区二区三区在线观看免费视频 | 韩国一区二区在线观看| 色哟哟一区二区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲欧洲精品一区二区精品久久久| 亚洲h动漫在线| 99视频在线观看一区三区| 2014亚洲片线观看视频免费| 亚洲国产毛片aaaaa无费看 | 26uuu亚洲| 日本视频一区二区三区| 欧美色精品在线视频| 亚洲图片欧美激情| 国产成人av一区二区| 精品日本一线二线三线不卡| 一区免费观看视频| 成人污视频在线观看| 久久久久久黄色| 韩国午夜理伦三级不卡影院| 欧美一区二区三区在线| 日韩精品成人一区二区三区| 欧美日韩一本到| 亚洲一二三四区| 色婷婷狠狠综合| 一区二区三区在线不卡| 日本丶国产丶欧美色综合| 亚洲激情自拍视频| 色综合久久精品| 亚洲激情一二三区| 日本精品一区二区三区高清| 亚洲线精品一区二区三区 | 欧美精品一二三| 日韩国产欧美三级| 日韩三级免费观看| 久久99久久久久| 国产午夜精品福利| 成人激情视频网站| 亚洲精品久久久蜜桃| 精品视频免费看| 美女在线一区二区| 国产色综合一区| 成人午夜视频免费看| 亚洲色图视频网站| 欧美日韩国产天堂| 激情综合网天天干| 国产精品色噜噜| 在线观看国产一区二区| 日本v片在线高清不卡在线观看| 日韩精品一区二区三区中文精品| 国产中文一区二区三区| 国产精品不卡一区| 欧美综合天天夜夜久久| 日韩伦理av电影| 成人教育av在线| 三级亚洲高清视频| 国产午夜亚洲精品午夜鲁丝片| 91老师片黄在线观看| 日韩精品色哟哟| 国产精品全国免费观看高清| 在线免费亚洲电影| 国产毛片精品视频| 亚洲超碰精品一区二区| 欧美精品日韩一区| 成人黄色a**站在线观看| 亚洲电影视频在线| 国产欧美日韩精品a在线观看| 欧美三区在线视频| 成人av免费在线观看| 亚洲gay无套男同| 国产精品天干天干在线综合| 337p亚洲精品色噜噜噜| 99久久久久免费精品国产 | 中文字幕中文字幕一区| 在线播放中文一区| 9l国产精品久久久久麻豆| 蜜臀av亚洲一区中文字幕| 亚洲欧美日韩在线播放| 久久人人爽人人爽| 91精品国产福利在线观看| 色偷偷88欧美精品久久久| 国产在线播精品第三| 偷偷要91色婷婷| 亚洲精品中文在线观看| 国产情人综合久久777777| 欧美大片日本大片免费观看| 欧美日韩aaaaaa| 欧美综合在线视频| 一本色道久久综合亚洲91| 国产99久久久久久免费看农村| 美女视频第一区二区三区免费观看网站| 亚洲激情图片qvod| 亚洲欧美激情插| 亚洲天堂免费看| 亚洲丝袜自拍清纯另类| 最新日韩av在线| 国产精品久久久久久亚洲毛片| 久久久国产精品午夜一区ai换脸| av一区二区不卡| 国产suv精品一区二区883| 精品一区二区三区日韩| 秋霞成人午夜伦在线观看| 亚洲大尺度视频在线观看| 亚洲一区精品在线| 亚洲一区自拍偷拍| 亚洲一区在线观看网站| 一区二区三区高清| 天涯成人国产亚洲精品一区av| 天天操天天综合网| 免费观看成人av| 韩国精品在线观看| 国产酒店精品激情| 国产高清精品网站| 99久久综合国产精品| 风流少妇一区二区| av在线不卡观看免费观看| 91玉足脚交白嫩脚丫在线播放| 一本久久综合亚洲鲁鲁五月天| 日本韩国视频一区二区| 在线播放中文字幕一区| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 丝袜诱惑亚洲看片| 在线精品亚洲一区二区不卡| 不卡影院免费观看| 99精品久久只有精品| 在线亚洲高清视频| 在线不卡一区二区| 国产亚洲一二三区| 亚洲天堂精品视频| 蜜臀久久99精品久久久久久9| 国产一区二区三区四区在线观看| 成人精品在线视频观看| 欧美在线看片a免费观看| 666欧美在线视频| 国产视频一区二区在线| 一区二区三区精品视频| 久久99精品久久久| 91在线视频免费观看| 欧美精选一区二区| 国产日韩av一区二区| 亚洲精品国产无天堂网2021| 日本成人中文字幕| 99re这里只有精品6| 91精品在线一区二区| 国产精品你懂的| 免费观看91视频大全| 色婷婷av一区二区三区软件 | 国产精品情趣视频| 日韩成人一级大片|