Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag an Icon into a Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676718
Message ID:
00676732
Vues:
15
>I would like to be able to drag an icon from a Windows Explorer window into a control in a form and have it display as a shortcut, so that when a user clicks on it, it will open that document together with the underlying application. Possible?
>
>Thanks
>Jay

Hi Jay,

I sure hope it's possible, since that is exactly the problem I'm working on at the moment. Here are a couple of approaches you might consider:

A. let the target be a WebBrowser control, navigated to a directory in the file system
B. use OLE Drag-and-Drop to instantiate a class of VFP object resembling an icon

It looks to me as though the simplest choice for method B. would be to use a pictorial CommandButton, or perhaps an Image-based control. If those classes aren't satisfactory, a composite Container with an Image and a Label inside it seems like a plausible approach.

Mike
Montage

"Free at last..."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform