Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox bug?
Message
 
 
To
29/01/2009 02:50:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01377798
Message ID:
01378033
Views:
16
>>Hi everybody,
>>
>>I have a complex form with multiple pages and containers instantiated on the fly. I have several checkboxes in the container. Depending on some condition I want to be able to make the checkbox enabled or disabled.
>>
>>We found a bug there. Once the checkbox is made disabled, it can not be re-enabled again.
>>
>>If I use readonly property instead and try to click on the checkbox, the value doesn't change, but the form reports that something was changed.
>>
>>Can anyone please confirm this bug or let me know a workaround?
>>
>>Thanks.
>
>if you doesn't post an bug example I guess none can help you.

I take it as you can not reproduce it for the scenario I described.

Have a pageframe with multiple pages (custom class, don't know if this is relevant). Have a container added in run-time for each page. Have textboxes + checkboxes on the containers (second page in this case where we noticed the problem). Have a button that calls some form and then sets checkbox enabled property using custom method of the container class setfields(tlEnabled).

this.SetAll('enabled',tlEnabled, 'mycheckboxclass')

Originally checkboxes come OK, but then we can not switch their disabled status back to enabled.

With the Readonly property it works, but then if you click on the checkbox, the GetFldState function reports a change.
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