Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Tool Tips
Message
De
29/04/2003 19:16:00
Peter Easson
Catalina Trading
Sydney, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00782929
Message ID:
00782951
Vues:
16
Hi,
Funny you should ask....
I have just spent the last week working this one out.
Firstly, the grid is not all that it appears to be. At any time, a grid only has a single active cell. The remainder of the column is what appears to be the rest of the Text1 cells, but in actual fact is merely a column of data, hence when you move your cursor away from the ActiveCell, you get the column ToolTip only and not the underlying cell tooltip that you're looking for.

When you pull the scroll bar down to look at other cells and the ActiveCell moves out of view, there is NO WAY with the VFP grid that you can determine where you are. This is why I posted a half-hearted plea to Ken Levy to expose some of the functionality of the Scroll Bars on the grid. If you knew what the 'Value' property of the vertical scroll bar was, you could work out the underlying record number.

With that in mind, I have spent the last week doing two things.

1 Writing an API for accessing Windows Tooltips (real ones), and ,
2. Superimposing a CC ScrollBar over the Grid scroll Bar to gain the functionality required.

The result is that I have Tooltips for EVERY CELL in the grid regardless of whether it has focus or not.

In the not too distant future, I will post a small DLL that will include tooltips with all the API functionality (Colours, Fonts etc) as well as exposing the Native VB collection class for those that don't have VFP8.

As far as the Grid Class goes, it needs a good clean and documentation before I can do anything with it. Suffice to say, look at the GridHit method for most of the questions that you have.

I stand corrected if I have overlooked some VFP functionality that I have missed that would have made this easier :-)

Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform