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:
00598774
Vues:
19
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.
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform