Changeset 710


Ignore:
Timestamp:
Nov 28, 2025, 10:08:56 PM (3 hours ago)
Author:
chronos
Message:
  • Fixed: Disable auto selection of input text in message dialog.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/MessgEx.pas

    r622 r710  
    7777  CenterTo := 0;
    7878  OpenSound := '';
     79  EInput.AutoSelect := False;
    7980end;
    8081
  • trunk/Packages/DpiControls/Dpi.StdCtrls.pas

    r673 r710  
    3838  TEdit = class(TWinControl)
    3939  private
     40    function GetAutoSelect: Boolean;
    4041    function GetSelLength: Integer;
    4142    function GetSelStart: Integer;
     43    procedure SetAutoSelect(AValue: Boolean);
    4244    procedure SetSelLength(AValue: Integer);
    4345    procedure SetSelStart(AValue: Integer);
     
    5658    property BorderStyle default bsSingle;
    5759    property ParentFont;
     60    property AutoSelect: Boolean read GetAutoSelect write SetAutoSelect default True;
    5861  end;
    5962
     
    303306end;
    304307
     308function TEdit.GetAutoSelect: Boolean;
     309begin
     310  Result := GetNativeEdit.AutoSelect;
     311end;
     312
    305313function TEdit.GetSelLength: Integer;
    306314begin
     
    311319begin
    312320  Result := GetNativeEdit.SelStart;
     321end;
     322
     323procedure TEdit.SetAutoSelect(AValue: Boolean);
     324begin
     325  GetNativeEdit.AutoSelect := AValue;
    313326end;
    314327
Note: See TracChangeset for help on using the changeset viewer.