Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to highlight current row in inactive grid?
Message
De
05/01/1998 12:13:38
 
 
À
04/01/1998 17:00:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00069392
Message ID:
00069554
Vues:
53
>Form has parent and child grid controls, e.q. document and document rows.
>When child grid is active, it is desirable that current row in parent
>grid is distinguishable from others.
>
>I did the following things in parent grid control:
>
>1. added currec property
>2. .dynamicbackcolor = IIF( recno()=this.currec, rgb(0,0,128), this.backcolor)
>3. Afterrowcolchange event
> this.currec = recno()
>
>4. Beforerowcolchange event
> IF recno()!=this.currec
> this.currec = 1
> ENDIF
>
>However, this will not work properly: sometimes row is not highlighted at all, sometimes two rows are highlighted.
>How to do it ?
>Maybe it can be done when grid loses focus, but grid has not lostfocus event.

in the two rowcolchange events, add this.refresh after you set the currec property. This causes the grid to re-evaluate its column's dynamic properties and I think it will solve your problem.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform