Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting right-click to fire in disabled control
Message
 
To
13/10/2004 08:59:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950916
Message ID:
00951046
Views:
17
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?


>I don't know if I understood all the details, but .Enabled = .F. means that the control won't react to any user input.
>
>If you want it to react to a right-click, try .ReadOnly = .T. instead.
>
>HTH,
>
>Hilmar.
>
>>I have a grid that has a right-click menu. There is a DESCRIPTION column that needs to be sometimes editable and sometimes not. This is easy enough, but whatever technique I use to do this results in the RightClick method not firing for that cell (meaning the user can't see the menu). MS introduced a bug into the grid in VFP 7 (which they fixed in VFP 7 SP1) that caused a RightClick not to fire on an empty grid. The workaround involved the fact that the right-click would pass through to the parent object (the form or the page that the grid was in, for example). I tried a similar workaround, but the right-click is not passing through. It's getting a little late. Hopefully my tired brain is overlooking something simple. Or maybe the problem is a thorny one. Can anyone offer assistance.
>>
>>Thanks,
>>
>>Russell Campbell
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