Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlinks in Memo fields
Message
From
27/02/2019 10:11:11
 
 
To
27/02/2019 10:04:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01666717
Message ID:
01666784
Views:
51
>Thanks, but I trying to keep it as simple as possible. Using built-in features of FoxPro when available. I would prefer this approach over having to include additional dependencies. If I can not discover a natural means, I would rather forgo the option to have hyperlinks in the application all together.
>
>But thanks for the option.

Using native FoxPro you could create a class which pulls out words from the memo field and displays them like how a word processor would, creating label after label with autosize = .t., using the text metrics to determine how wide each item is and where to place it. For those items which are parsed as hyperlinks (file: prefix, or http: prefix, etc), you could render them with the underline and alternate color font, use the hand pointer icon on them, and then BINDEVENT() to the Click() of that object and have it parse the object's caption and open it.

There are several ways to make it happen. I'd be willing to help you write that one too if you'd like as it would be a nice addition to the community (if it doesn't already exist).

>>I wrote a control for Visual FreePro, Jr. that can display and edit in two modes: text, and hypertext.
>>
>>Maybe you could approach it that way. Use an editbox for editing, and abother control for monitoring html.
>>
>>If you can't find one, I could give you one that uses the VJr code in a DLL.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform