Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Bug in CExtButton Collapse All
Subject Author Date
Offer Har Nov 20, 2006 - 8:39 AM

1) Create a dialog based project.
2) But a check-box, and a button.
3) Derive the button from CExtButton
4) Override the OnClick of the check box.
5) In the OnClick alternate the eneble state of the button (if checked, then button enabled, un-checked, button disabled)

The test: press the check-box very fast, and stop with check-box unchecked, sometimes the button is still enabled.

Please fix for the next version.

Technical Support Nov 23, 2006 - 10:57 AM

Actually we cannot confirm this bug. In the ProfUIS Controls, there is an Enable check box on the Buttons page, which enables/disables buttons on this page. So we used it for testing. Please try to reproduce this with this sample and let us know the result. Please note that if the check box is unchecked, it should be clicked an even number of times so the buttons remain disabled.

Offer Har Nov 23, 2006 - 12:17 PM

The bug is in M$’s CCheckListBox - if you click too fast, you don’t get all the events... it get messed up.
I will consider replacing this class with a grid class...
Thanks anyhow.

Offer Har Nov 20, 2006 - 8:41 AM

2) first word is Put, not But...