Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToolTipText and StatusBarText for Header
Message
From
27/12/2001 04:33:01
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00598347
Message ID:
00598369
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Nadya, it is not possible to display tool tip for different elements of the grid. This is because tool tip for the grid control is displayed always. You can implement this 2 ways.

1. Build grid based on classes, even for column control (or define MouseMove event code for each column in run-time). In MOuseMove event set the ToolTipText property of the grid to the value that is appropriate to the grid element. You can also get a lot of help from GridHitTest method of grid, if you want. This approach is not reliable, however, and tool tip displayed oftenly not correct, and does not change when mouse moves until you move mouse out of the grid to hide the tool tip window (or find a way tohide it manually - that is what I was not able to figure out).

2. Use FancyToolTip control. It does not designed originally to work with grid elements, but I managed to make it work this way. Fancy Toll Tip control just checks by timer if mouse is moved and displays the tool tip custom control. The control for tool tip is determined by sys() function to get the object currently under mouse. This function for grids returns just grid no matter where mouse is inside of the grid. Then you check - if object is grid, use GridHitTest to determine grid part and change tool tip (or object for tool tip) to the appropriate object for tool tip inside of the grid. This includes headers.

As you see, you cannot do this just from inside of the header class...

>Hi everyone,
>
>I'm wondering, if somebody implemented ToolTipText (StatusBarText) for Header control? It should not be too complicated, but I need some ideas. If you have class written and you're willing to share, it's even better.
>
>Thanks a lot in advance.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform