View Single Post
Old 3rd August 2021, 23:34   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,522
Radio buttons are usually part of a group and you cannot focus a radio without selecting it. When you are notified you should just check which of the radios in the group is selected and take appropriate action.

In the most common case you don't even add a handler for a radio, you just check its state in the page leave callback function. Only catch the OnClick if you dynamically need to change something else on the page when the radio changes.

Internally in Windows check-boxes and radio buttons are implemented as buttons and nsDialogs just catches the BN_CLICKED event for OnClick.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote