Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Link to website
Message
 
 
À
01/07/2000 12:54:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00387369
Message ID:
00387382
Vues:
21
>>I've created an "About App" form for my application and I'd like to inlcude a link to our webiste from this form. How should I go about doing this?
>
>Create a label and underline and and color it, ect. to make it look like a link, you can also change the cursor for it. Then, in the click event, do:
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" INTEGER, STRING, STRING, STRING, STRING, INTEGER
>
>=ShellExecute(0,"Open","http://www.allanspage.com","","",0)

>
>and that will pop up the users default browser and go to your webpage.

Or if you don't want to use the WinAPI, add a Hyperlink object to your form and call the NavigateTo method from the label click.

Another option would be to take a look at the _hyperlinklabel class in the FoxPro Foundation Classes (FFC) in _hyperlink.vcx. The label look and feel is done for you.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform