Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using FFC Hyperlink Label for MAILTO in VFP6
Message
 
À
07/09/1999 11:02:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00261951
Message ID:
00263260
Vues:
19
>I'm trying to figure out how to use a FFC Hyperlink Label class to provide a MAILTO link on a form (e.g., 'mailto:fred@splat.com'). The problem is that the class seems to prepend 'http://' to the font of the URL if it isn't already there, which makes the browser ignore the 'MAILTO' part.
>
>Can this not be done with Hyperlink Label, or am I perhaps not setting something correctly?
>
>-- jas


I wouldn't use a hyperlink label. I'd just use a regular label, make it blue and underlined, and in the click event, I'd use the SchellExecute class to execute the mailto link to "Mailto:" + THIS.Caption.

The disadvantage of the hyperlink class is that it always starts the browser first.

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform