Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with combo style 2 vfp 6
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00952074
Message ID:
00952182
Views:
10
This message has been marked as the solution to the initial question of the thread.
>>>Alex,
>>>Thank you for the suggestion. I thought about When event but I would like to gray out the combo box when user clicks in it (to clearly indicate that editing is not allowed). Got Focus and Lost Focus work for all other controls but combo. I don't think you can gray out the control in When event.
>>
>>Hi Dmitry,
>>
>>What is the condition, that trigers whether your combo should be enabled or disabled? Could you set it from the form's level instead?
>
>Nadya,
>I have a form property that is set to negative 1 (-1) to indicate that data should not be changed. I guess I could change the design, as you suggest, but it works with all controls but the combo. So far, I basically decided for follow yours and Alex suggestion to use When event.
>Thank you.

If it's a form property and all controls should be disabled why not use SetAll method?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform