You've already forked lazarus-ccr
* Remove CanFocus. Use he inherited from TWincontrol instead
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@981 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -2964,7 +2964,6 @@ type
|
||||
function CancelEditNode: Boolean;
|
||||
procedure CancelOperation;
|
||||
function CanEdit(Node: PVirtualNode; Column: TColumnIndex): Boolean; virtual;
|
||||
function CanFocus: Boolean; {$ifdef COMPILER_5_UP} override;{$endif}
|
||||
procedure Clear; virtual;
|
||||
procedure ClearChecked;
|
||||
procedure ClearSelection;
|
||||
@@ -25142,23 +25141,6 @@ end;
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
function TBaseVirtualTree.CanFocus: Boolean;
|
||||
|
||||
var
|
||||
Form: TCustomForm;
|
||||
|
||||
begin
|
||||
Result := inherited CanFocus;
|
||||
|
||||
if Result and not (csDesigning in ComponentState) then
|
||||
begin
|
||||
Form := GetParentForm(Self);
|
||||
Result := (Form = nil) or (Form.Enabled and Form.Visible);
|
||||
end;
|
||||
end;
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
procedure TBaseVirtualTree.Clear;
|
||||
|
||||
begin
|
||||
|
Reference in New Issue
Block a user