General information
Title:
Multi Select Grid Class
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only