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 17:24:04
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
20/08/2001 14:50:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00546254
Message ID:
00546458
Vues:
25
>>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.

Right. That'll be the problem. And the menu is so much more straighforward. Simpler is good when possible. My 02 USD. But thanks for the tips, for sure.

>Users can sort my grids by both clicking on the header (it sorts, and then sorts ascending or descending for all sub sequent clicks),

Yep. Same as mine.

> 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.

Yep, that would be a nice addition. I'd also like to give them the option of which column they'd like to sort by, with the default being the column they selected. But that'll have to be another day, and so far it's only idea. Dunno how useful the users would actually find it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform