Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox behavior
Message
From
10/10/2009 20:41:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/10/2009 18:10:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01428691
Message ID:
01428704
Views:
85
>I'm wanting to make a textbox display its contents but not be clickable. I have tried readonly and not enabled, but the user can still click onto it and if they drag the mouse, it will highlight. This is the behavior I'm trying to prevent. Any possible way of making objects "non-clickable"? Thanks.

.Enabled = .F. should be enough to avoid the user clicking on it. Use the debugger to check whether it actually STAYS disabled. Perhaps some code in your framework is setting it back on. I had this problem in Visual Extend, and finally figured out that at least in some cases, I had to set ANOTHER property (framework-specific) to actually keep an item disabled.
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
Reply
Map
View

Click here to load this message in the networking platform