Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>Is there a way to change the color of a grid line, which is currently highlighted.
>>
>>The property which is available for grid line color only changes the color when it is not selected, once it is selected, I guess it uses colors from Windows.
>>
>>Any way to change the color ??
>
>Vinod,
>
>Look at the properties that start with 'dynamic' in the grid class column. You can enter a function in it whose result is the color that you want, and this way you can let this color depend on the data of the cursor underlying the grid.
>
>For example, if you wanted to change the backcolor of a grid for the selected line, you could have an the following statement in the DynamicBackcolor property of each of your columns:
>
>iif(recno()=thisform.nSaveRecno,rgb(selected),rgb(not selected))
>
>You have to make sure that you set thisform.nSaveRecno= recno() of the underlying cursor/table before the form is refreshed.
>
>This works in VFP3.0. It is neighter very OO, nor very fast, so you should implement it only where absolutely necessary.
>
>Make sure you look into help if you want to implement this programmatically.
>
>HTH,
>
>Marc
Thanks !! I will try that.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement