Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Intercept navigation and clicks w/ browser control on fi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Divers
Thread ID:
01340823
Message ID:
01340898
Vues:
8
I don't think you can intercept that double-click.
You can create a web page with all the images and display it in the Web Browser control or use ListView control. You can use GetDir to move between folders.

>I am trying to find a way to display a list of image files in a folder and allow the user select a file. I can use the browser control and navigate to "c:\images" for example, and see the explorer view of the folder. I want the user to be able to double click on a file and have my app do something based on that file selection rather than the OS.
>
>It's like having the functionality of a getfile() dialog embedded in my form.
>
>>I'm not sure I understand what you're doing. What are you displaying in the Web Browser control?
>>
>>>If I set canel = .t. it prevents navigating folders, but double clicking on a file launches the file using the associated app. Can I intercept that?
>>>
>>>>Put your code into BeforeNavigate event/method. It has 2 parameters: Url and Cancel. Set Cancel=.T. to prevent default IE navigation.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform