Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controls
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Controls
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01222444
Message ID:
01222444
Views:
54
I am in the process of developing a form that is populated with several text and combo boxes. All of my base classes for text and combo boxes have a custom property called "Editable" and my base form has one called "Editing." I use these custom properties to enable and disable all the "editable" controls on the form depending on the "editing" mode of the form. I got this from Jim Booth years ago and it has always worked great for me in the past, and it has been working on this form in the early stages of testing up until today.

This frmAddRec form is subclassed from my frmMain class which already has a few comboboxes on it. Those comboboxes respect the editing mode and are enabled correctly. However, any controls that are added to the subclassed frmAddRec form are not respecting the editing mode, in a way.

Here's the weird part, I can look at the each of these problem controls in the Debugger and they are showing ".T." for the Enabled property, yet I can't click on them and their backcolor is that of a disabled control.

This all started when I started adding code to the "Add" button of another form to call this frmAddRec form passing a parameter of "Edit" to enable editing mode. I have since commented out all of that code and I am still having the problem when I simply run the form and distinctly set the form's "editing" mode to true.

I am at a total loss.

Thank you for your help.

Sincerely,
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Next
Reply
Map
View

Click here to load this message in the networking platform