Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids.. Blah
Message
From
17/11/1998 11:37:42
 
 
To
17/11/1998 11:31:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00158261
Message ID:
00158295
Views:
16
>>Sorry, I don't understand what you said (probably typos). Could you repeat: is column2 getting focus or not? It was tested, and works Ok on my machine (VFP5).
>
>I believe a little more indepth explanaion might help. I have a 3 column grid on one of my forms. I want the user to only be able to change the value of 1 column(column2) which contains a checkbox. I have tried disabling column 1 and 3, and the controls in both columns. The user can still click on the column and take focus away from Column 2. Even if I enable all columns and put
>
>thisform.grid1.column2.check1.setfocus()
>nodefault
>
>in the 1st and 3rd column's control's getfous event, the 2nd column doesn't get focus. The control in conlumn 1 or 3 wouldn't have focus but the column would keep it. The column itself doesn't have a gotfocus event, so I can't set it there. I know how to do this in a Browse (use the freeze clause) but can't seem to get a grid to behave. That help some?

That's strange, because it works perfectly on my machine:
*** column1.text1.gotfocus
thisform.grid1.column2.setfocus()
nodefault
Did you really enabled both Column1 and Column1.Text1? Could you check that Column1.Text1.Gotfocus fires at all?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform