I am using GuiButton in my AFL. Based on the bar range selected, I do certain calculations on clicking the Button. I am able to catch the button click event and all calculations work fine. But facing an odd issue.
Steps when issue is found:
Click on a Gui Button. Focus remains on button clicked (no problem).
Use mouse to select some bar.
After that I use keyboard Left arrow or Right arrow to select exact bar.
But use of keyboard left arrow or right arrow does not change the selected bar. Bar selected by mouse continues to remain selected.
If I click on another Sheet or Chart or Another non-amibroker window, the Gui button loses focus and I am able to change Selected bar using keyboard arrow keys.
I am using ver 6.28.
Is there anything I can do within AFL to remedy the problem?