The usage of the accelerator key %ac in combination with ESC key causes an exception 0x000006BA. This happens only in debug mode (sdbg), otherwise it works as expected. The idea is to exit an user input panel without any action (ExitPanelX=0) if the user is pressing the ESC key, similar pressing the 'Cancel' button.
Have I missed something?
Regards WoSl
Here is a code snippet
external DefLayout,ExitPanelX
...
i=winio@ ('%ca[Assign Box Layout]&')
i=winio@ ('%2.1ob[no_border]&')
i=winio@ ('Box Layout Template%nl&')
i=winio@ ('%15.5ls&',cBoxDef,nlayout,mlayout)
i=winio@ ('%cb&')
i=winio@ ('%ta%^bt[&Modify'//char(10)//'Template]&',DefLayout)
i=winio@ ('%cb%7nl&')
i=winio@ ('%ac[ESC]&',ExitPanelX)
i=winio@ ('%cn%`bt[&OK]%ta%bt[&Cancel]')
....
integer function ExitPanelX()
ExitPanelX=0
return
end