Information générale
Titre:
Transferring tool tip text
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement