Skip to main content

TcxCustomShellListView.OnBeforeNavigation Event

Occurs before navigating to a new shell item.

Declaration

property OnBeforeNavigation: TcxBeforeNavigationEvent read; write;

Remarks

The OnBeforeNavigation event occurs before navigating to a new shell item. The new shell item is identified by the ANewAbsolutePIDL parameter. This parameter is a PItemIDList value, representing a new shell item. In order to convert this value to a readable string, use the GetPIDLName function.

The following code example prints the path to the accessed shell item within a status bar:

procedure TForm1.cxShellListView1BeforeNavigation(Sender: TcxCustomShellListView; ANewAbsolutePIDL: PItemIDList);
begin
  StatusBar1.SimpleText := GetPidlName(ANewAbsolutePIDL);
end;
See Also