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 » RadioButton of style "Push-like" is ignored. Collapse All
Subject Author Date
jb lee Mar 31, 2006 - 6:36 AM

TGIF.

I add some radio button on a dialog and check its style as "Push-like".
After defining the variable for the control as CExtRadioButton, push-like style is gone.
Did I something wrong?

Technical Support Mar 31, 2006 - 8:51 AM

You need simply to subclass the radio button with the CExtButton class.

jb lee Apr 2, 2006 - 8:18 PM

If I subclass the option button with the CExtButton class, original behavior of option button is not called.
You know, three option button, first button’s style is group, then, only one option button is remain checked.

Technical Support Apr 3, 2006 - 11:05 AM

We confirm that there is a bug in the CExtCheckBox and CExtRadioButton classes with this regard. Please add the following code at the beginning of the CExtRadioButton::_RenderImpl() and CExtCheckBox::_RenderImpl() virtual methods:

if( (GetStyle()&BS_PUSHLIKE) != 0 )
{
   CExtButton::_RenderImpl(
      dc,
      bTransparent,
      bCombinedContent
      );
   return;
}
This will fix the problem.