class CGXRadioButtonEx : public CGXControl

The CGXRadioButtonEx control is similar to a CGXRadioButton control except that it has an active state and gives you an option to align the radio buttons horizontally or vertically.

This means that the control will call virtuals like OnStartEditing, OnModifyCell, OnValidateCell in the grid during the corresponding user action.

The following control ids are predefined in Objective Grid for this control:

GX_IDS_CTRL_RADIOBTNEX - with old Windows 3.x look

GX_IDS_CTRL_RADIOBTN3DEX - with newer 3d-look

You can apply radio buttons to cells with

SetStyleRange(range,
      CGXStyle()
         .SetControl(GX_IDS_CTRL_RADIOBTN3DEX)
         .SetChoiceList("choice one\nchoice two\nchoice three\n")
         .SetUserAttribute(GX_IDS_UA_RADIOBUTTON_ALIGN, _T("1"))
      .SetValue("0") // select first choice
      );

Please look at the description of GX_IDS_UA_RADIOBUTTON_ALIGN for an explanation of this user attribute. This is under the description for CGXRadioButtonEx::AddUserAttributes.

See CGXRadioButton for more information on usage of this control.

#include <gxall.h>

See Also

 CGXRadioButton

CGXRadioButtonEx

 Class Members