ShellBrowser Delphi Components Documentation
|
Checks if move is possible.
function IsMovePossible(Delta: Integer): Boolean;
Parameters |
Description |
Delta: Integer |
The amount of positions that should be moved. |
True if the move of Delta positions can be performed.
This method checks if moving back or forward is possible. Set delta to the same value as the delta value in the move function.
procedure TMainForm.JamShellListChange(Sender: TObject; Item: TJamShellListItem; Change: TItemChange); begin MoveForwardButton.Enabled := JamShellTree.IsMovePossible(1); MoveBackButton.Enabled := JamShellTree.IsMovePossible(-1); end;