Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlight Problem - Can you Duplicate it?
Message
De
14/09/2005 09:32:22
 
 
À
14/09/2005 09:21:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01049139
Message ID:
01049387
Vues:
20
SNIP
>I have not sincerely understood what you want to do, but:
>
>
>    IF loCurrentControl.BACKCOLOR = THISFORM.gridbackcolor
>          .Columns(lnColumn).Sparse = .t.
>*     loCurrentControl.BACKCOLOR = THISFORM.HIGHLIGHTBACKCOLOR	&& !! this is useless
>   ELSE
>       .COLUMNS(lnColumn).SPARSE = .F.
>       llsethighlight = .T.   && change the highlightstyle on the grid
>   ENDIF
> ELSE
>     .Columns(lnColumn).Sparse = .t.
> *    loCurrentControl.BACKCOLOR = THISFORM.HIGHLIGHTBACKCOLOR       && !! this is useless
>  ENDIF
>
>
Thank you Fabio. I have tried that. However, the effect is that the cells in the columns with a special backcolor do show their backcolor as they should, but the other columns are not highlighted or emulating the highlight. Their backcolor is the default grid backcolor (white) and not emulating the highlight when the row with no special dynamicbackcolor in that column is the current row. Also, as in my earlier problem, when I click on different rows in the grid and say row 1 has a special backcolor in column2, but row 2 does not, then the data shifts left/right when the mouse is clicked between the two rows. This has been my problem all along. When I get the highlight/backcolor working as I need it to then I have to toggle sparse on/off to do it and toggling sparse on/off causes the data margin to shift.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform