Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BalloonTip class beta
Message
From
27/09/2006 12:22:15
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01156162
Message ID:
01157549
Views:
21
>That worked like a charm! :)
>
>I still have the setfocus because I want the cursor to position on the control once the message is displayed. Now I'm thinking in using your class together with my "errorprovider" class.
>
>>>>Carlos
>>>
>>>Yes, the textbox has SelectOnEntry=.t., I've put a Setfocus on the code because that way the tip display over the textbox.
>>>
>>>I'll try the new version and let you know!
>>>
>>

The problem is that when you use ctlPositionStyle = 1 it tries to position the balloontip near the cursor, and if there is selected text in the textbox, there is no cursor to find. I have coded a workaround that checks if there is selected text, and positions the balloontip using a style of 2 (aligns to active control).

I will post a new version later today.

Also I have added some new features, you can select to show a close button in the balloontip, fade in, fade out. Also you can put a link in the tooltip, for example with a web address, and it will open that page in the default browser when the user clicks the link.

A ctlEvent was added, that tells you when the balloontip gets hidden, and why (user clicked on it, user clicked in form, user clicked close button, etc)
Previous
Reply
Map
View

Click here to load this message in the networking platform