Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ToolTipText and StatusBarText for Header
Message
De
27/12/2001 10:17:26
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00598347
Message ID:
00598425
Vues:
30
This message has been marked as a message which has helped to the initial question of the thread.
Nadya,

A bit clunky, but you could also place invisible shapes/containers over the headers in the grid and display their their individual ToolTips.

Renoir

>Hi Vlad,
>
>I see. Sounds quite complicated. Is it the same for StatusBarText? I think, we can make a wish for Toledo version to implement ToolTipText and StatusBarText for each class (column, header, etc.)
>
>I think, for StatusBarText it should work in MouseOver of the header. Just set message to Header.StatusBarText. Right?
>
>I probably leave this idea for now, but we may discuss it lately and may be we can design something in a future...
>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform