Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Row Highlighter
Message
De
22/10/2001 02:21:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid Row Highlighter
Divers
Thread ID:
00571546
Message ID:
00571546
Vues:
43
Hello to all of you guys... I hope this grid highlightre will help you in creating more exiting modules. Below is a simple command that will put a grid highlighter in your grid. If you are familiar with the clipper tbrowse or browser this may look similar.

* grid highlighter

* in the Init Event of the form

public precno
precno = 0

select xdatabase
go top

* in the event of AfterRowColChange Event

precno = recno()
this.refresh

* in the DynamicBackColor of each grid's column

iif(recno() # precno, RGB(255,255,255), RGB(128,128,128))
&& shows gray color background on the current row


* note: be sure the record source of the grid is filled up.
* the precno variable can be initalized at the start of the program
* this can be recycled over and over again
* if you want to view more about the grid highlighter just
* download the file attached

for a sample file on this just e-mail me at epsums@yahoo.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform