Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have the icon of an EXE file ?
Message
 
To
14/12/2002 10:11:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728355
Message ID:
00733249
Views:
41
Kouakou,
>
>thank you for your work. it works well.
>
I'm glad to hear that

>
>but i would like to know how to doubleclick the icon to load the file ?
>

That actually does not have anything to do with IconBuddy. IconBuddy
simply does the extraction of the Icon. What You actually do with it
lays on Your side.
You might however want to use shellExecute() on a doubleclick witch is
what happens when You doubleclick on a file in Windows Explorer. The only
thing You would need is the FileName. Imagine You have a file like
MyFile.HTM that You have loaded in the ListView. You would then store
that filename with the node or in a separate array and in the doubleclick
event of the ListView do something like this
*-- lcMyFile will have to be retrieved
*-- from somewhere but for the sample 
*-- let's just take it
lcMyFile = "<fullpath>\WhatEver.htm"

declare integer ShellExecute in SHELL32.DLL integer, string, string, string, string, integer

=ShellExecute( 0, "open", lcMyFile, "", "", 1)
This should cause to open InternetExplorer displaying the file. This works
with every associated file like *.doc *.pdf and the like.

Another way would be to query the associated Executable using
IconBuddy's GetAssocExecutable() - method and callt that using run /n
passing the file as a parameter.

>
>how to arrange all icons horizontaly with only the horizontal scrollbar ?
>

This again is not an IconBuddy-Issue. You will need to look into the ListView-
documentation to set the several Properties right. There are ways to sort and
arrange icons using different methods.
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform