Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointer in grid without focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00044481
Message ID:
00044534
Vues:
32
>>>>I had the answer before but I lost it. How do you make a grid highlight the row with the current record when the grid doesn't have focus?
>>>Use DynamicBackColor for the columns.
>>>Alex.
>>Sorry to seem slow, but I need an expression. I have IIF(myexpression,RGB(255,255,255),RGB(0,255,0)). What can I put for myexpression? I tried THIS.Text1.Value=myfield, but it didn't like it.
>
>You can use a "dummy" record number;
>
>nRec = recno('etc...')
>IIF(recno('etc...') =nRec,...
>
>Note: nRec must have a wide scope.
We're getting closer, I think. I made a form property gridcurrec, which I hope might have wide scope. My expression in .DynamicBackColor is recno()=THISFORM.gridcurrec. Somewhere, I need to put THISFORM.gridcurrec = recno('gridalias'). Grids don't have a .lostfocus event, and I think the controls inside the grid will think all RECNO()s in the grid are RECNO(), if you know what I mean.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform