Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: WEXIST see's tool tips as a window
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00976135
Message ID:
00976184
Views:
13
Hi Michael,

It looks like a bug to me. BTW, tooltip window isn't released after tooltip goes away and even after your progam isn't running anymore.
? WEXIST( "ToolTip Test" )  && returns .T.
>Here is an interesting one (well, it's interesting to me anyway !)
>It seems VFP 9 sees ToolTipText as a window. Well, the WEXIST function does anyway.
>
>Myself and my boss found unusual tool bar behaviour when we recompiled one of our projects in VFP9. We use the WEXIST function to see if a tool bar has been closed or not, and the tool tip text on the button which creates the tool bar is the same as the tool bar caption. We were finding that sometimes the system thought the tool bar was still open, even though it wasn't. In VFP8, everything was fine.
>
>What seems to happen is when the tool tip is created, you can use the WEXIST function on the tool tip text and it will return .T.
>
>For anyone interested, here is some example code. Place it in a .PRG and run it.
>It will create a button and a text box on the screen. Hover the mouse over the button, and the timer will kick in, and the WEXIST function will see the tool tip text as a window.
>Click the button to stop.
>
>
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform