Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight current grid row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00143073
Message ID:
00143085
Vues:
25
Mark,

There is another flavor of row hilighting grid over on my website you might want to take a look at it too. It's uses a transparent shape instead of the slower Dynamic properties.

>I'm using Cetin's grid class to highlight the current row, and I have a few questions:
>
>1) Is the HighlightRow property supposed to do this, or do I just misunderstand its purpose?
>
>2) I was glad to find Cetin's code, because I literally don't think I would've figured it out otherwise. He uses
>
> .SetAll("DynamicBackColor", "IIF(RecNo(This.RecordSource) = This.inCurRec," + ;
> str(this.icCurRecBackColor)+","+str(this.BackColor)+")", "Column")
>
>Why is This.inCurRec needed, and not This.Parent.inCurRec? It appears that when this property of the column is evaluated, it's done so in the scope of the grid, not the column (which means I suppose I'd get an error if I tried to directly reference a column property).
>
>3) Even with this code, when I click on the grid, the clicked cell changes color (I really want the grid to mimic a listbox). What is the easiest way to prevent this? I suppose by changing the colors of the control, but since textboxes, etc., don't have DynamicXXXX color properties, it seems this will need doing whenever the cell gets the focus.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform