Applies to: posted in the c55ee group; the thread names no template chain. Hand code in an embed plus plain Clarion window code.
Problem
The poster wanted the Accepted event to run on a radio button (an OPTION group) even when the user only tabs past the default value. For an entry field, ?Entry{PROP:Touched} = True in the Selected embed forces the Accepted event, but the same line did nothing for a radio control.
Solution
- Put
ALRT(TABKEY)on the RADIO controls. - In the window's event loop, on
Event:AlertKeywithKeycode() = TabKey, post the event for the option group:Post(Event:Accepted,?Option1). - On
Event:PreAlertKeywith the same key,CYCLE, so the tab keystroke is still handled normally. - The reply's test program tested
Field() = ?Option1underEvent:Acceptedand showed a message, which showed the group's Accepted ran.
Caveats
- This only covers the keyboard. The poster of the code added that it does not help when the user clicks off the control.
- Other replies: a plain
POST(Event:Accepted,?radio)in code, and the PROP:Touched line in the Selected embed of the field that follows (wrapped in a test that the entry is not already touched). The original poster said the ALRT approach fitted her case best. - The thread does not say which template chain or embed the original poster used.
Today (2026)
The ALRT and POST statements are plain Clarion window code and likely still work on current Clarion; not re-tested. The poster did report back that the approach worked for her in 2002.
Sources: Lisa D. (Feb 2002, the question), James C., Tim G., Jeff S. (Feb 2002) in softvelocity.products.c55ee.