Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Positioning shape control under the grid Header
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00598583
Message ID:
00598912
Vues:
39
Hi,

I tried to pass events from header to shape or grid. Haven't succeed. I also tried simple this.parent.parent.tooltiptext = tis.tooltiptext in MouseMove of the Header, but it didn't quite work. So, I was able to activate StatusBarText, and I decided against ToolTipText after spending ~3h. in wain...

>Hi!
>
>Nadya, instead of positioning shape under grid, position it over grid to cover it. Then pass all mouse events from shape to grid using approach I did used for sorting indicator control in my SortGrid class. When you click on the indicator, the events from mouse are passed to form again so they forwarded to the control behind the shape. The code is not simple (uses API functions), and it was developed as a part of teh Fancy Tool Tip control.
>
>
>>Hi Charlie,
>>
>>Thanks for the advice. Before going home I checked Vlad's Sortable Grid sample, and may be I can borrow some ideas from this code. Though the code is extremely complicated and I will need at least one whole day to understand it.
>>
>>I have another idea: Put a transparant shape on the whole grid width at header position. Now I'm thinking, how can I pass Header.MouseMove method to Shape MouseMove method in order to show its ToolTipText...
>>
>>Do you have some suggestions?
>>
>>Thanks in advance.
>>
>>>Hi Nadya,
>>>Check out ObjToClient(). I'm not sure it is what you want, but it works well for a menu positioned on a header.
>>>
>>>>Hi everybody,
>>>>
>>>>I'm working on idea of implementing ToolTipText for Header control. I add shape to the form on the fly. I need to position it where the Header is located with the same width and height, top and left. Could you please help me to find it out?
>>>>
>>>>Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform