Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect mouse double click between grid headers
Message
De
26/07/2005 17:52:09
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
26/07/2005 16:30:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01035996
Message ID:
01036043
Vues:
15
>>>>Hi,
>>>>
>>>>I'm trying to run a custom method of a grid when a doubleclick between the grid headers is fired. By default, the column autofits it's visible content. I want the autofit for the column to consider ALL rows (even the ones that are not displayed in the grid). I have a method to do just that (thanks to Drew Speedie). The problem is, I want this method to fire when I doubleclick between the headers. How can I do that?
>>>>
>>>>TIA
>>>>
>>>>Mike
>>>MouseDown and MouseUp events of the grid are fired when you click between headers, but you must check by yourself if this is a double click or not :o( First time (if the colums need to autofit) Resize event of the column in left is fired, but this can't be something that you can trust, because the second DblClick isn't fired this event.
>>
>>Thanks for the reply Borislav.
>>
>>This is turning out to be a real pain. I started to look at the GridHitTest method but can't seem to figure it out :(
>>
>>Regards,
>>
>>Mike
>
>
>Hi Mike,
>
>Take a look at this for GridHitTest() example.
>
>Grid Cell setfocus on MouseMove (with Tooltips & Hilighter)
>http://www.tek-tips.com/faqs.cfm?fid=4631
>
>Regards

Hi Herman,

Thanks for the link. I'll see if it will help.

Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform