Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to include hyperlinks in a visual foxpro
Message
 
 
To
17/08/1998 09:37:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00127375
Message ID:
00127401
Views:
30
John,

Use a label subclass, that uses mouse cursor like the hand, in the click event:
declare long ShellExecute in "shell32.dll" ;
   long hwnd, ;
   string lpszOp, ;
   string lpszFile, 
   string lpszParams, ;
   string lpszDir, ;
   long nShowCmd  

declare long GetDesktopWindow in "win32api"   

local hDCScreen   

hDCScreen = GetDesktopWindow()

ShellExecute( hDCScreen, "open", this.Caption, "", "", 1 )
If you want keyboard access have the label subclass Init() AddObject() a commandbutton set to style-Invisible that calls the label.Click() from it's Click().

>Is there a way to add hyperlinks onto forms that will launch the internet explorer to the specified address when the link is clicked?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform