Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi Select Grid Class
Message
From
14/10/1997 15:03:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Multi Select Grid Class
Miscellaneous
Thread ID:
00054508
Message ID:
00054508
Views:
62
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.
Next
Reply
Map
View

Click here to load this message in the networking platform