Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hyperlink from a grid column
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00223601
Message ID:
00223620
Views:
28
>I'm trying to set up a hyperlink from a grid column. The text/caption of the hyperlink should be bound to the columns record source and it should of course appear underlined, blue coloured and immediately responsive to a mouse click. The mouse icon should change appearance to a pointing hand when the mouse is placed over the link. Has anybody successfully implemented this? How?

Yes, we use that a lot, and it works great. All you need for the underline is the column Fontunderline = .T., and to look nice you need to set the column source like:

grid.column.controlsource = 'alltrim(mytable.myfield)'

For the hand, we use an API routine called in the column Mousemove, and re-set in all surrounding objects...Vlad Tatavu provided the initial code for this, and it's available in the files section here...

You can even color followed links by adding a logical column to the recordsource, if you want...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform