Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control. AllowCellSelection Bug?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00782122
Message ID:
00782329
Views:
13
This works fine for me. Here is my code, when I run it and press tab the wait window appears.

CREATE CURSOR cJunk (field_one c(20), f2 c(20))
FOR lni = 1 TO 10
INSERT INTO cJunk VALUES (REPLICATE('W',lni), REPLICATE('ab',lni))
endfor
GO TOP
LOCAL aobj[1], xx
DELETE FILE testxx.sc?
CREATE FORM testxx NOWAIT
=ASELOBJ(aobj,1)
xx = aobj[1]
xx.autocenter = .t.
xx.addobject('text1','textbox')
xx.addobject('grid1','grid')
xx.grid1.columncount = 2
xx.grid1.top = 35
xx.grid1.allowcellselection = .f.
xx.grid1.writemethod('when','wait window Program() time 1')
ACTIVATE WINDOW 'form designer - testxx.scx'
KEYBOARD '{ctrl+w}'
DO FORM testxx
return

If you are expecting the When event to fire for controls in columns, this will not happen, as AllowCellSelection prevents individual grid controls from gaining focus.

I hope this helps!

>I am using the VFP8 native grid for my classes. I just discovered that when you set the grid property AllowCellSelection to false the grid doesn't pass pass throught the method WHEN and i have some code in the when method.
>
>How can i keep the property AllowCellSelection false and passing throught the when method as well.
>
>Thanks Beforehand.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform