To gain more control over the FrameExtension template/class, I've added two new embed points which lets you wrap code around the FrameExtension call, which can help with short cutting the class.
In ABWindow.TPW search for
#AT(%WindowManagerMethodCodeSection,'TakeEvent','(),BYTE'),PRIORITY(2500),DESCRIPTION('Top of CYCLE/BREAK support')
and then add
#PRIORITY(3200),DESCRIPTION('Before Frame Extension TakeEvent')
and
#PRIORITY(4800),DESCRIPTION('After Frame Extension TakeEvent')
so you end up with...
#AT(%WindowManagerMethodCodeSection,'TakeEvent','(),BYTE'),PRIORITY(2500),DESCRIPTION('Top of CYCLE/BREAK support')
#?LOOP #<! This method receives all events
#?IF Looped
#?RETURN Level:Notify
#?ELSE
#?Looped = 1
#?END
#PRIORITY(3200),DESCRIPTION('Before Frame Extension TakeEvent')
#EMBED(%AcceptLoopBeforeEventHandling,'Accept Loop, Before TakeEvent'),LEGACY
#PRIORITY(4800),DESCRIPTION('After Frame Extension TakeEvent')
#PRIORITY(7500),DESCRIPTION('Bottom of CYCLE/BREAK support')
#SUSPEND
#?IF ReturnValue THEN RETURN ReturnValue .
#EMBED(%AcceptLoopAfterFieldHandling,'Accept Loop, After CASE FIELD() handling'),LEGACY
#EMBED(%AcceptLoopAfterEventHandling,'Accept Loop, After TakeEvent'),LEGACY
#RESUME
#?RETURN ReturnValue
#?END
#?ReturnValue = Level:Fatal
#ENDAT
There will be an equivalent in the Clarion (CW20) template chain, which needs modifiying, but I think its good to be able to shortcut the FrameExtension class in certain situations.