Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I stop headers click in mouseup event?
Message
De
20/08/2001 14:50:18
 
 
À
20/08/2001 13:23:53
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00546254
Message ID:
00546379
Vues:
21
>I haven't gotten the blessing from the users yet, though.

If you dont', just throw this in the headers:
nWhere = 0
this.Parent.Parent.GridHitTest(MCOL(MWINDOW(), 3), MROW(MWINDOW(), 3), @nWhere) 
IF INLIST(nWhere, 2, 13)
	RETURN
ENDIF

* Rest of click code goes here for sorting
Doesn't help much for movable though. In that case, you'll want to use one of the other techniques mentioned.

Users can sort my grids by both clicking on the header (it sorts, and then sorts ascending or descending for all sub sequent clicks), and right clicking for a context menu like you say, but mine shows them "Sort Asecnding" and "Sort Descending" and putting a check mark by the correct one if the column is already sorted.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform