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 20:43:33
 
 
À
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:
00069703
Vues:
48
>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.
Hi Andrus.

There are a couple of very easy way to do this that I know of:

1. Download MTVFPEX.ZIP from the vcx section of the library here. There are a bunch of helpful code examples beside this one (which, by the way, uses very little code)

2. Visit David Frankenbach's web site and download his control for highlighting the grid row (I think the address is www.geocities.com/7134)

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform