Dear Appeon:
We encountered a strange issue these days, seems all of our commandbutton controls in our application can automatically trigger the clicked event, when unintentionally press enter or space on it in case there is a bule rectangle on it. this issue cannot even solved, even when we call setfocus function to switch focus to other controls (because the blue solid rectangle still remains on the previous clicked button), it gets great impact on our application these days when there are more than 10,000 times of scan and key presses these busy days. I have no idea so far, how to deal with it, can give me an idea.
BTW, our Powerbuilder is 2017R3 build#1880, and OS is Win11 or above?
FWIW: The SetFocus() command works OK for me in my Apps but I am using PB 2022 R2 on W11 as only version PB version 2022 & higher is supported on that O/S version. However, I am not privy to your App's design & code - so it could be something else blocking the SetFocus().
Regards .. Chris