General information
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only