HI!
I have several buttons that works like a switches. On first click button changes the variable state to true and second to false (for example). Everyting works perfect but there is a problem. When I click button first time it's get focus and second click doesn;t do anything. I have to click somewhere and button lost focus - now I can click it second time. Is it a way to prevent button getting focus or lost it when I click it automatically?
Best regards
I have several buttons that works like a switches. On first click button changes the variable state to true and second to false (for example). Everyting works perfect but there is a problem. When I click button first time it's get focus and second click doesn;t do anything. I have to click somewhere and button lost focus - now I can click it second time. Is it a way to prevent button getting focus or lost it when I click it automatically?
Best regards