Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActivatCell method without editing the cell
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038433
Message ID:
00038434
Vues:
29
> When I use ActivateCell in my grid, the cell goes into an edit mode. When > I UP Arrow from there it highlights the cell above without being in an edit > mode. This is what I prefer. Right now I ActivateCell to the cell 1 below > the one I want, then do KEYBOARD '{UP ARROW}' to achieve my desired affect. > Can someone please tell me how I might accomplish this selected state > directly from the ActivateCell method? My work-around looks a little odd Check out the DynamicBackColor and DynamicForeColor properties. You can set a property on the class or form that contains the record number (it'll be up to you to update the record number), and then have the following code in your grid.init method: this.setall('DynamicBackColor','iif(thisform.recno=recno(),rgb(0,0,128),rgb(255,255,255))','Column') this.setall('DynamicForeColor','iif(thisform.recno=recno(),rgb(255,255,255),rgb(0,0,0))','Column') /Paul
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform