Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command button in a grid
Message
 
 
À
31/12/2001 15:37:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00599443
Message ID:
00599494
Vues:
19
>Hi Nadya.
>
>>> I have Command button in a grid column. Column.Sparse is set to .f. How can I show tooltiptext and statusbar text for this Command button? <<
>
>You can "borrow" the grid's ToolTipText. This code in the CommandButton's MouseEnter() method:
>
>WITH This
> .Parent.Parent.ToolTipText = "< My ToolTipText >"
>ENDWITH
>
>You can add a custom property to the grid class to hold the grid's tooltiptext and save it before setting it to what you want it to be for the command button. Then, you can restore it is the command button's MouseLeave() method.

Hi Marcia,

Thanks a lot for the response. I was thinking about the same approach for creating Header's ToolTipText. Unfortunately, I still use VFP6.0 and I already found, that MouseMove event doesn't work reliably (at least, for Headers). I guess, I will wait for our company decision to upgrade, when I return to this idea.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform