CWinCtrlRadio¶
Callbacks arriving at :class:`CWindowBase<CWindowBase>`
void onClick(CWinCtrlBase cCtrl)
void onHold(CWinCtrlBase cCtrl)
void onBeginDrag(CWinCtrlBase cCtrl,Vector2 pos)
void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)
bool onDragRender(CWinCtrlBase cCtrl,Transform transform)
void onDrop(CWinCtrlBase cCtrl,CWindowBase cDragWindow,CWinCtrlBase cDragCtrl)
-
class CWinCtrlRadio
¶ Functions / Properties
This value changes the state of the radio button.
true:
Turns ON and OFF the grouped radio buttons. Activate any associated content.
false:
Turn OFF and hide any associated content.
Example of use
// get control
CWinCtrlRadio rdSelect = find<CWinCtrlRadio>(RADIO_Select);
if (rdSelect.check) {
//ON
} else {
//OFF
}
// click callback
override protected void onClick(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case RADIO_Select:
break;
}
}
// hold callback
override protected void onHold(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case RADIO_Select:
break;
}
}