General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only