Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyperlinks in Memo fields
Message
De
27/02/2019 10:11:11
 
 
À
27/02/2019 10:04:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Divers
Thread ID:
01666717
Message ID:
01666784
Vues:
52
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform