Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyperlink from a grid column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00223601
Message ID:
00223620
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform