Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox in Grid is ReadOnly though grid is not
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00229996
Message ID:
00230026
Views:
19
>Hey all,
>
>Saw a lot of other threads about this, but my behavior seems a tad different. First off, I am using VFP 6.0 SP3, so the Checkbox has a readonly property and all.
>
>I made a simple grid with 3 columns, the last two having checkboxes as the CurrentControl. The last two columns are bound to logical fields in a local view, and the grid's RecordSource is that local view *RecordSourceType being "Alias")
>
>When I try to click on the checkboxes, the status bar tells me the control is read-only. Setting breaks in the debugger, I see that the control goes from ReadOnly = .F. to ReadOnly =.T. right when the checkbox gets focus (or when the cell gets focus anyway) and no code comes up at the break...it must be some internal operation.
>
>I have added stuff like THIS.ReadOnly = .F. in the GotFocus and When, but that first click still doesn't get accepted. That means the user has to click once to get focus to the cell, then click again to make the checkbox toggle. This is unacceptable.
>
>What is wrong with my checkboxes? Why to they toggle to ReadOnly upon gaining focus? Is there a workaround? An event I can intercept to make this smoother? Any and all help would be _greatly_ appreciated...

You've checked the column readonly = .F. too?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform