Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus to the visible first column, not the defined 1s
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01154356
Message ID:
01154374
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Yes, yes it will work this way. Visually add and extra column, by default it will be at the end all the columns. Now shift this latest (last) column to be the first column visually, setting the no. as 1 in the properties sheet. the it will stop working

O!
I missed that part :-( sorry, Change the code in ADD button to be:
thisform.LockScreen = .t.
***THIS.PARENT.New()
APPEND BLANK
cName = THISform.grid1.Columns(thisform.Grid1.LeftColumn)
DO WHILE THISform.grid1.Columns(thisform.Grid1.LeftColumn).ColumnOrder # 1
   THISform.grid1.DoScroll(4)
   cName = THISform.grid1.Columns(thisform.Grid1.LeftColumn)
ENDDO
cName.SETFOCUS()
thisform.LockScreen = .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform