Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect mouse double click between grid headers
Message
 
À
26/07/2005 17:54:03
Mike Sue-Ping
Cambridge, Ontario, Canada
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:
01036105
Vues:
13
Mike,

column::MouseMove()
column::Click()
column::DblClick()

header::MouseMove()
header::Click()
header::DblClick()

Where? Where you need.

MartinJ

>Hi Martin,
>
>I'll give your idea a try. One thing puzzles me, however. From what event do I call this custom method?
>
>TIA
>
>Mike
>
>
>
>>Hi Mike,
>>
>>You add new method to your grid class:
>>
>>*grid::SplitLineHitTest(loHeader)
>>LPARAM loHeader
>>LOCAL liMRow, liMRowMax
>>liMRow=MCOL(Thisform.Name,3)
>>* header.left+header.width+1
>>liMRowMax=OBJTOCLIENT(loHeader,2)+loHeader.Parent.Width+1
>>
>>* If out or no?
>>* .T., mouse is by columnline
>>* 5 is fixed , you can set 3 or 2 (pixels)
>>RETURN BETWEEN(liMRow,liMRowMax-5,liMRowMax+5)
>>
>>
>>MartinJ
>>
>>>>>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform