Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fichiers
Recherche: 

IconBuddy for Visual FoxPro 6 and 7 Version 1.3
Frank Dietrich, Dietrich Datentechnik
Need to always display the correct icon in a TreeView, ListView etc. when dealing with files like Foo.xls or ExtraFoo.doc, just like Windows-Explorer does? Want to know name and path of the executable that is associated to SuperFoo.xml? Yes, then IconBuddy will be Your friend. It extracts large and small icons from files or their associated executables, returning You and object-reference that can directly be handed over to an ImageList-control. Also tells You what as specific fileType is called by Windows Explorer (e.g. "Microsoft Excel SpreadSheet"). Small custom class that comes with a sample SCX as well as CHM-Help file
Créé le
Il y a 21 années
Téléchargements
1445
Type de fichier
Résultat de votes
5.00/5.00
General information
Résultat de votes:
5.00/5.00 (3 rates) Évaluer cet item
Description
IconBuddy on the fly extracts icons from files or their associated executables. You don't have to know where actually WINWORD.EXE is installed on the system in order to display the correct icon when dealing with a Word Document or any other file. High- and low-level methods allow you to play either with iconHandles or with iconObjects directly. Method Extract2ImageList() even allows You to get the associated icon into an ImageList-control with a single command. In most cases the high-level methods will be all You ever need. The zip-file includes the class with all sourcecode, a CHM-Help file and a Sample.scx. The SCX supports OLE Drag&Drop and shows how to use IconBuddy with ImageLists and ListView-Controls. Simply drag some files from WindowsExplorer onto the form and see what happens. High level methods Extract2ImageList(tcFile, tcKey, toImageList[, tlSmallIcon[, tnIndex]]) extracts an icon from a resource-file or any other type (*.doc, *.xls,...) and directly adds it to the provided ImageList-Control. If cKey already exists in the ImageList, the index for the existing will be returned instead. You can retrieve large and small images. By default the associated icon will be used but You can specify an IconIndex when dealing with resource-Files (exe, dll, ico). GetAllIcons(tcFile[, tlAppend]) Get all icons from the specified resource-file (exe, dll, ico) and store the imageObjects in the .aIcons[n,2] - array. The array has two columns carrying large and small icons. GetAssocIconPairObjects(tcFile, @toLargeIcon, @toSmallIcon) Get the associated large/small icon pair for a given file. GetIconCount(tcFile) how many icons are in the given file? Low level methods The low level methods directly use the windows api in order to provide content for the high-level-methods. They use SHGetFileInfo(), ExtractIconEx(), ExtractAssociatedIcon(), DestroyIcon(), OleCreatePictureIndirect(). You'll find more info on these in the CHM-HelpFile. Utility methods Add2ImageList(toImgList, toImg, tcKey) add an image to an imagelist or return the index if the provided key already does exist. GetAssocExecutable(tcFile[,tlIsExtension]) Return the associated executable for a given file. Updated: December, 4 Version 1.3 Added support for VFP6. please have a look at the special paragraph in the help file (hope it works for everyone) Updated: December, 3 Version 1.2 New method Extract2ImageList() that allows single command operation for most purposes. Updated: December, 2 Version 1.1 Now has SHGetFileInfo() support and thus is able to extract large and small associated icons.
Créé par
Frank Dietrich, Dietrich Datentechnik
FoxPro 2.5 / 2.6 since 1993 VisualFoxPro since appearance of VFP3 ActiveX, ADO, COM, ODBC...

Commentaires
That is very fine!!! Alex Novodzilov, June 26, 2003

Very usefull utility. The use of OLECreateIconIndirect was the key. Thanks. Theo Flabouras, October 12, 2004

Ajouter un commentaire
More downloads created from this member
Frank Dietrich, Dietrich Datentechnik
With higher screen resolutions even I as a "computer-man" sometimes have problems to properly hit a form's border in the lower right corner when I want to resize it. Our VFP-forms do not have the small dotted resp. lined triangle (XP vs. Win2K-Systems) that extends the resize-sensitive area. This sm...
Créé le
Il y a 19 années
Téléchargements
1141
Type de fichier
Freeware
Résultat de votes
4.33/5.00
Frank Dietrich, Dietrich Datentechnik
You use WestWind's HTML HelpBuilder (wwHelp) and always wanted to show expandable topic trees (TOC) on Your Index-, header- or other pages? You write Documentation but when the version finally is ready for shipment can't remember witch were all the cool new features and witch were the fixes that sho...
Créé le
Il y a 20 années
Téléchargements
449
Type de fichier
Frank Dietrich, Dietrich Datentechnik
Many of us were used to COB's CEE editor extensions until we painfully realized that, with VFP 7 on the market, CEE and Intellisense are not willing to exist peacefully side by side. CEEClone now makes our macroes work again under the Intellisense-engine and "re-enables" some of the functonality we ...
Créé le
Il y a 22 années
Téléchargements
1704
Type de fichier
Résultat de votes
5.00/5.00
Frank Dietrich, Dietrich Datentechnik
This is a small Intellisense-script that creates a comma delimited field-list of any of the currently used tables and puts it right to Your cursor. real, local or no Aliases can be selected. Additionally " as " clauses using long fieldnames can be added - No more typos! Requires VFP7.
Créé le
Il y a 22 années
Téléchargements
729
Type de fichier
Résultat de votes
5.00/5.00