ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TShellBrowser.ObjectName Property

ObjectName contains the name of the current object

Syntax
Pascal
property ObjectName: UnicodeString;
ShellBrowser.Folder := 'C:Windows'; ShellBrowser.ObjectName := 'Calc.exe'; ShellBrowser.InvokeContextMenuCommand('properties');

Use ObjectName to specify the current object or to retrieve the file system name of the current object. The method GetShellObjectName will return a "display friendly" name of the current object.

These lines show the property page for the windows calculator:

ShellBrowser.ObjectName := 'C:WindowsCalc.exe'; ShellBrowser.InvokeContextMenuCommand('properties');

The ShellBrowser component automatically separates the path from the file name. This code does the same:

Copyright (c) 2011. All rights reserved.