Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToolTip Text and Word Wrap
Message
From
02/08/2003 13:51:28
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813640
Message ID:
00816220
Views:
22
David,

I tried:

= "This line." + chr(13) + "That line."

in the ToolTip property. It does not work. I never have had any success in doing any type of creative text formatting in a tool tip. The best solution I have ever come across is when VFP7 came out with the MouseEnter and MouseLeave events. Thus, I would place both the control and a description containing edit box in a container. Then the MouseEnter causes the container to adjust height to reveal the edit box with its text contents. The MouseLeave event closes it back up. The net result visually to the user, is the appearance of a note about the item being hovered over. It works very well. The only drawback appears to be that while a tool tip will appear outside the confines of a window, a container is restricted to the form it is appearing in. This is a small price to pay for the functionality.

For an example how this is coded, see my message exchange with Fabio Lunardon on Re: IntegralHeight property of 28/07/2003. The answer I give him there has a complete form with container and controls. It is perhaps not a complete example, but it is enough to get the idea.

Best Regards,

Larry Rix
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform