Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi Select Grid Class
Message
De
14/10/1997 15:03:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Multi Select Grid Class
Divers
Thread ID:
00054508
Message ID:
00054508
Vues:
67
VFP5.0a
I am trying to create a multi select grid class. In the class I maintain an array that has one element for every record in the grid table. I am using the following dynamicbackcolor property to display selected rows. The array elements are currently set with a keypress method called in the controls keypress event. Right now I am only using the up & down arrows in conjunction with the shift key until I get some of the bugs worked out. My problem occurs when keys are pressed very quickly or held down. The record pointer ends up ahead of the selected rows or the first column will be incorrectly selected and all of the other columns will be ok.

this.SetAll("DynamicBackColor","IIF(iif(reccount(this.SelectedAlias)<=alen(this.SelectedArray),this.SelectedArray(recno(this.SelectedAlias)),.f.),GetSysColor(10),RGB(255,255,255))", "Column")

My first question is can anyone make a suggestion here?

My second question is am I reinventing the wheel? Are there controls available that do this allready? I would need source code.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform