Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write Method in Grid.Init to the last columns as may be
Message
De
23/06/2005 18:05:29
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01025799
Message ID:
01026086
Vues:
22
>Hi Sergey
>
>>It's design time feature.
>
>
THIS.Columns[this.columncount].WRITEMETHOD("LostFocus", ;
>[if this.parent.LastRow()] + CHR(13) + CHR(10) + ;
>[	keyboard "{Ctrl+TAB}"] + CHR(13) + CHR(10) + ;
>[END] + CHR(13) + CHR(10))
>
>No wonder it does not work.
>
>Any alternative to this. I want to tab out of the grid when I reach the last column of the last row in a grid.
>
>Thanks for your response.
>
>Please advise.

You can have that code elsewhere (in a custom method) and use BindEvent() to make the code fire with the lostfocus of the column.

Er... VFP6? Ouch. Um... never mind.

Your options in VFP6 include code in ARCC or BRCC of the grid (as Cetin said), or using custom controls - a custom column which would have a property .lLastColumn (set at grid's init, probably), so its .lostfocus would contain the tab out code. Or you can have a (dynamiccurrent)control in the last column which would have the code in its lostfocus.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform