Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write Method in Grid.Init to the last columns as may be
Message
From
23/06/2005 18:05:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01025799
Message ID:
01026086
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform