J'ai utilisé un gridEx, dont la deuxième colonne est un champ de type userDraw. C'était nécessaire, car je voulais pouvoir afficher le texte en deux couleurs différentes selon les cas (noir ou gris).
Voici mon code (simplifié) :
CODE
Private Sub grdScores_DrawItem(ByVal iRow As Integer, ByVal iCol As Integer, ByVal lItemData As Long, ByVal iLeft As Integer, ByVal iTop As Integer, ByVal iWidth As Integer, ByVal iHeight As Integer)
grdScores.TextColor=hbColorBlack
tPartie.LookupUniqueID lItemData
if tPartie.Joueur=CROCO_PLAYER then grdScores.TextColor=hbColorGray
grdScores.TextOut iLeft,iTop,tPartie.Joueur,hbTextAlignTop+hbTextAlignLeft,109
End Sub
grdScores.TextColor=hbColorBlack
tPartie.LookupUniqueID lItemData
if tPartie.Joueur=CROCO_PLAYER then grdScores.TextColor=hbColorGray
grdScores.TextOut iLeft,iTop,tPartie.Joueur,hbTextAlignTop+hbTextAlignLeft,109
End Sub
Or, quand une ligne est sélectionnée, j'ai un affichage différent sur le simulateur (Garnet), et sur mon T5. Voici les screens :
Sur le T5 :

Sur le simulateur :

J'ai deux problèmes :
Merci de votre aide à ceux qui comprennent
