Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transferring tool tip text
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Transferring tool tip text
Divers
Thread ID:
00133027
Message ID:
00133027
Vues:
56
I have a datespinner class that has a textbox and some command buttons for spinners. The class doesn't natively have a tooltiptext property, so I added my own. The trouble is that I need to transfer the text from my custom property to the ttt of the textbox.

So, in the init code of the textbox, I put :

this.tooltiptext = this.parent.tooltiptext

This works, but it gives an wrong data type error. By doing some debugging, I found that it runs the init code once and works, then runs it again and somehow the this.parent.ttt type is L instead of C the second time. This is what's giving the error.

I have no idea why it's running twice.

I "solved" the problem by putting the code in the MOUSEMOVE event. Then I don't get the error. It's not a total solution, though, because the ttt only shows up the second time you move the mouse over the control.

Any ideas?

-Michelle
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform