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:
00038439
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

Thanks Paul, my problem really is with the ability to right arrow over to the next cell after doing ActivateCell. Right now a right arrow will just move the cursor inside the current cell because it is in an edit mode. When I UP ARROW off of the current cell, I am then able to move around the grid using Arrow keys, but not until I move off of the cell selected with ActivateCell. I believe your suggestion will help with making it Look highlighted, but I would still have the same issue. Please let me know if I am mistaken. Thank you very much for you help.
Marcus.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform