Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting right-click to fire in disabled control
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950916
Message ID:
00951167
Views:
15
This is not a situation where the whole column is set read-only. It is on a row-by-row basis, depending on a condition. In the past, I've used a condition in the When method. This is fine, but in conjunction with a right-click menu, it disables the right-click. Out of habit, I put some code in the When method:
this.readonly = <expr>
return .t.
That wasn't working and neither was the DynamicCurrentControl (there seem to be some issues with getting that working correctly). Don't know why I didn't think of AfterRowColChange. Like I said, it was getting late after a long day. Thanks.

Russell


>>This may be a problem with my use of the DynamicCurrentControl property. I put a "edit" textbox in the column and a "noedit" textbox (ReadOnly is True for that Textbox) and DynamicCurrentControl determines which one to use (with the column's Sparse property set to False). However, it's always editable. I Googled DynamicCurrentControl and found that a lot of people are having problems getting it to behave properly. Also, ReadOnly is normally controlled at the column level and setting it at the control level may not work as expected. So I'm still experimenting with the syntax to get DynamicCurrentControl to set the right control. Any suggestions?
>
>Russel,
>
>The read-only condition is usually handled in grid's AfterRowColChange event depending on condition. If only column's read-only flag should be set, you don't need to use DynamicCurrentControl.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform