Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing click event when resizing header
Message
 
 
À
16/08/2001 15:46:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00544608
Message ID:
00544988
Vues:
18
>>when i'm resizing the headers in my grid the click event of the header is fired
>>and the column get ordered by it's index ..
>
>In your grid Header.Click(), add this code:
>
>
nWhere = 0
>this.Parent.Parent.GridHitTest(MCOL(MWINDOW(), 3), MROW(MWINDOW(), 3), @nWhere)
>IF NOT INLIST(nWhere, 2, 13)
>	WAIT WINDOW 'Click!'
>ENDIF
>
>Now you know if you're resizing or not.

Mike, it works great for resizing, but not for moving columns. Do you have an
idea, how to detect moving from Column.Header?

I tried David's suggestion and it works just fine. So, I updated my header class.
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