BFC_ShellIcon

Description

This is a component that can be used for making shortcuts for the desktop, start menu, Startup, Programs, Recent and SendTo -folders. The names of the folders that will be used are language-dependant. (In Dutch-versions of win95/98/NT these folders will be desktop, start menu, Opstarten en Programma's). In addition this component has properties containing the names of all special-folders.

 

Properties

Arguments   Declaration
property Arguments: String;

Description
Arguments for the shortcut.

Description   Declaration
property Description: String;

Description
Description of the Shortcut.

Filename   Declaration
property Filename: String;

Description
The full name (Path + Exename) for the file to be executed when (double)-clicking the icon.

IconPlace   Declaration
property IconPlace: TIconPlace;

Description
This can be ipDesktop, ipStartMenu, ipPrograms, ipStartup, ipSendTo, ipRecent or ipFavorites. (see TIconPlace-type).
Default = ipDesktop.

PathAltStartup   Declaration
property PathAltStartup: String;
PathAppData   Declaration
property PathAppData: String;
PathCommonAltStartup   Declaration
property PathCommonAltStartup: String;
PathCommonDesktopDirectory   Declaration
property PathCommonDesktopDirectory: String;
PathCommonFavorites   Declaration
property PathCommonFavorites: String;
PathCommonPrograms   Declaration
property PathCommonPrograms: String;
PathCommonStartMenu   Declaration
property PathCommonStartMenu: String;
PathCommonStartup   Declaration
property PathCommonStartup: String;
PathControls   Declaration
property PathControls: String;

Description
Control Panel virtual folder containing icons for the control panel applications.

PathCookies   Declaration
property PathCookies: String;

Description
File system directory that serves as a common respository for internet cookies.

PathDeskTop   Declaration
property PathDeskTop: String;

Description
Windows desktop virtual folder at the root of the name space

PathDeskTopDirectory   Declaration
property PathDeskTopDirectory: String;

Description
File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).

PathDrives   Declaration
property PathDrives: String;

Description
My Computer virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives.

PathFavorites   Declaration
property PathFavorites: String;

Description
File system directory that serves as a common respository for favorites.

PathFonts   Declaration
property PathFonts: String;

Description
Virtual folder containing fonts.

PathHistory   Declaration
property PathHistory: String;

Description
File system directory that serves as a common respository for internet history.

PathInternet   Declaration
property PathInternet: String;

Description
File system directory that serves as a common respository for internet.

PathInternetCache   Declaration
property PathInternetCache: String;

Description
File system directory that serves as a common respository for internet cache.

PathNetHood   Declaration
property PathNetHood: String;

Description
File system directory containing objects that appear in the network neighborhood

PathNetwork   Declaration
property PathNetwork: String;

Description
Network Neighborhood virtual folder representing the top level of the network hierarchy.

PathPersonal   Declaration
property PathPersonal: String;

Description
File system directory that serves as a common respository for documents.

PathPrinters   Declaration
property PathPrinters: String;

Description
Printers folder virtual folder containing installed printers.

PathPrintHood   Declaration
property PathPrintHood: String;
PathPrograms   Declaration
property PathPrograms: String;

Description
File system directory that contains the user's program groups (which are also file system directories)

PathRecent   Declaration
property PathRecent: String;

Description
File system directory that contains the user's most recently used documents

PathRecycleBin   Declaration
property PathRecycleBin: String;

Description
Recycle bin system directory containing file objects in the user's recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it

PathSendTo   Declaration
property PathSendTo: String;

Description
File system directory that contains Send To menu items.

PathStartMenu   Declaration
property PathStartMenu: String;

Description
File system directory containing Start menu items.

PathStartup   Declaration
property PathStartup: String;

Description
File system directory that corresponds to the user's Startup program group.

PathTemplates   Declaration
property PathTemplates: String;

Description
File system directory that serves as a common repository for document templates.

ShortcutName   Declaration
property ShortcutName: String;

Description
Name of the shortcut itself. There will be a file created <shortcutname>.lnk.

StartupDirectory   Declaration
property StartupDirectory: String;

Description
This will be the name of the directory in which the executable will be executed.

 

Methods

Get_Icon   Declaration
procedure Get_Icon;

Description
Get the properties of the shortcut. First defines the place of the Shortcut (see TIconplace). Next provide the shotcutname and invoke the Get_Icon method.

Make_Icon   Declaration
procedure Make_Icon;

Description
Start making the Icon...

 

Types

TIconPlace

  Declaration
type TIconPlace = (ipDesktop, ipStartMenu, ipPrograms, ipStartup, ipSendTo, ipRecent, ipFavorites);

Description
Type that defines the places where the ShellIcon will be placed.

ipDesktop : On the windows desktop.
ipstartmenu : In the startmenu (click on the start-button, above the programs)
ipPrograms : In the programs-menu (choose start/programs)
ipStartup : In the startup-folder(choose start/programs/startup)
ipRecent : In the documents-folder (choose start/documents)
ipSendto : In the SendTo-folder (Right-click on a file or shortcut and choose SendTo)
ipFavorites : In the Favorites-folder