Ignore:
Timestamp:
Apr 24, 2021, 11:41:07 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Merged changes from trunk r377.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/DpiControls/UDpiControls.pas

    r353 r378  
    4444    property OnMouseLeave;
    4545    property OnMouseEnter;
     46    property OnDblClick;
    4647    property ParentFont;
    4748  end;
     
    165166    function GetHint: string;
    166167    function GetOnClick: TNotifyEvent;
     168    function GetOnDblClick: TNotifyEvent;
    167169    function GetParentFont: Boolean;
    168170    function GetShowHint: Boolean;
     
    182184    procedure SetOnChangeBounds(AValue: TNotifyEvent);
    183185    procedure SetOnClick(AValue: TNotifyEvent);
     186    procedure SetOnDblClick(AValue: TNotifyEvent);
    184187    procedure SetOnResize(AValue: TNotifyEvent);
    185188    procedure SetParentFont(AValue: Boolean);
     
    263266    property OnChangeBounds: TNotifyEvent read FOnChangeBounds write SetOnChangeBounds;
    264267    property OnClick: TNotifyEvent read GetOnClick write SetOnClick;
     268    property OnDblClick: TNotifyEvent read GetOnDblClick write SetOnDblClick;
    265269    property OnMouseDown: TMouseEvent read FOnMouseDown write FOnMouseDown;
    266270    property OnMouseMove: TMouseMoveEvent read FOnMouseMove write FOnMouseMove;
     
    35753579end;
    35763580
     3581function TDpiControl.GetOnDblClick: TNotifyEvent;
     3582begin
     3583  Result := TControlEx(GetNativeControl).OnDblClick;
     3584end;
     3585
    35773586function TDpiControl.GetParentFont: Boolean;
    35783587begin
     
    36553664begin
    36563665  GetNativeControl.OnClick := AValue;
     3666end;
     3667
     3668procedure TDpiControl.SetOnDblClick(AValue: TNotifyEvent);
     3669begin
     3670  TControlEx(GetNativeControl).OnDblClick := AValue;
    36573671end;
    36583672
Note: See TracChangeset for help on using the changeset viewer.