Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transferring tool tip text
Message
From
03/09/1998 17:25:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Transferring tool tip text
Miscellaneous
Thread ID:
00133027
Message ID:
00133027
Views:
57
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
Map
View

Click here to load this message in the networking platform