Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting right-click to fire in disabled control
Message
From
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:
00951011
Views:
16
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
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform