mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: BriefFileView - Don't scroll partially visible cells on mouse click
ADD: Constructor
This commit is contained in:
parent
a071374217
commit
ff95be6439
1 changed files with 18 additions and 1 deletions
|
|
@ -76,6 +76,7 @@ type
|
|||
procedure DoUpdateView; override;
|
||||
procedure SetSorting(const NewSortings: TFileSortings); override;
|
||||
public
|
||||
constructor Create(AOwner: TWinControl; AFileSource: IFileSource; APath: String; AFlags: TFileViewFlags = []); override;
|
||||
constructor Create(AOwner: TWinControl; AConfig: TXmlConfig; ANode: TXmlNode; AFlags: TFileViewFlags = []); override;
|
||||
constructor Create(AOwner: TWinControl; AFileView: TFileView; AFlags: TFileViewFlags = []); override;
|
||||
destructor Destroy; override;
|
||||
|
|
@ -92,7 +93,7 @@ type
|
|||
implementation
|
||||
|
||||
uses
|
||||
LCLIntf, LCLType, Forms,
|
||||
LCLIntf, LCLType, Forms, LCLVersion,
|
||||
LCLProc, Clipbrd, uLng, uShowMsg, uGlobs, uPixmapManager, uDebug,
|
||||
uDCUtils, uOSUtils, math, fMain, fMaskInputDlg, uSearchTemplate,
|
||||
dmCommonData,
|
||||
|
|
@ -242,6 +243,11 @@ end;
|
|||
procedure TBriefDrawGrid.MouseDown(Button: TMouseButton; Shift: TShiftState; X,
|
||||
Y: Integer);
|
||||
begin
|
||||
{$IF DECLARED(lcl_fullversion) and (lcl_fullversion >= 093100)}
|
||||
// Don't scroll partially visible cells on mouse click
|
||||
Options:= Options + [goDontScrollPartCell];
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LCLGTK2}
|
||||
// Workaround for two doubleclicks being sent on GTK.
|
||||
// MouseDown event is sent just before doubleclick, so if we drop
|
||||
|
|
@ -266,6 +272,11 @@ var
|
|||
BackgroundClick: Boolean;
|
||||
Point: TPoint;
|
||||
begin
|
||||
{$IF DECLARED(lcl_fullversion) and (lcl_fullversion >= 093100)}
|
||||
// Don't scroll partially visible cells on mouse click
|
||||
Options:= Options - [goDontScrollPartCell];
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF LCLGTK2}
|
||||
// Workaround for two doubleclicks being sent on GTK.
|
||||
// MouseUp event is sent just after doubleclick, so if we drop
|
||||
|
|
@ -778,6 +789,12 @@ begin
|
|||
ReDisplayFileList;
|
||||
end;
|
||||
|
||||
constructor TBriefFileView.Create(AOwner: TWinControl;
|
||||
AFileSource: IFileSource; APath: String; AFlags: TFileViewFlags);
|
||||
begin
|
||||
inherited Create(AOwner, AFileSource, APath, AFlags);
|
||||
end;
|
||||
|
||||
procedure TBriefFileView.DoFileUpdated(AFile: TDisplayFile; UpdatedProperties: TFilePropertiesTypes);
|
||||
begin
|
||||
MakeColumnsStrings(AFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue