Change Focus

I have a panel with a button in it that when clicked prints information into the history area of the command bar. My problem is that after clicking the button the button stays in focus ( has a focus ring around it) such that if I hit enter on my keyboard the same info again prints in the history area. I find this very annoying. I want to remove focus after the click such that pressing enter doesn't repeat the button procedure call. Is there a simple way to do this (like maybe causing a mouse click on a different part of the panel?)?

Appreciate any help.
I'm guessing you're using Igor 7.

You can add to the button procedure a command to set the focus elsewhere:
    ModifyControl someTitleBox activate


If need be, you can make a TitleBox someTitleBox, title="", frame=0 so the focus isn't visible.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.