Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I simulate a hypertext link in a VFP app?
Message
From
12/05/2001 20:38:42
 
 
To
12/05/2001 00:21:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00506543
Message ID:
00506631
Views:
30
John,

Hi. Thanks. I will check out the class in FFC. I know you must be wondering, what am I thinking, why go through all the craziness with the invisible button, when I can just put the code in the click of the label. In the back of my mind I had the notion that I might not just want to click underlined text with the mouse, but that I might also want to just underline one letter, via '\
Also, ff I was going to do this, I was thinking that I would attempt to make the 'hotkey' a different color than the rest of the underlined text, since the hotkey is usually just identified by being underlined, and in this case all the text would be underlined. This is all to satify one user who is big on this stuff. Which brings me to another question. Can I control color 'within a label' or other element that is set via forecolor. In other words when you set forecolor for a label you set it for the whole label. How can I vary the text color within the label. I don't want to resort to creating one label for each color change.

>Hey David,
>
>First off, there is a hyperlink class in the FFC. Works great! Secondly, what's so hard about putting code in the Click of a label? In fact, you could create a class that tests for a property set True to see if it shows as a link.
>
>Been there, done that, got the t-shirt. You want code?
>
>>My client wants me to simulate html type help, or a hyperlink in my vfp app.
>>The app doesn't necessarily have to call up a browser, it is just that they want to be able to click on underlined text and call up a help definition for the underlined text.
>>
>>So far I have done the following:
>>
>>Have a label that contains the non-underlined text, put it immediately adjacent to a command button with the underlined text in question, then follow with the remainder of the 'the sentence'. This works ok for grey background. But, you can't (at least without difficulty I think) change the backcolor of a command button. (there were some threads on this - regarding windows color scheme - that I have yet to fully understand)
>>
>>Put a label directly behind an invisible button (with send to back). Call the help screen from the command button click. Change the forecolor of the label, in click method of invisible button.
>>
>>
>>Are there some other controls (ActiveX?) that will do this? Or actually create true hyperlink, that calls up a browser
>>
>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform