
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I created a Dialog and added a number of (CButton) buttons to it. Each time I click a button everything seems to work as expected without fail...or was I just lucky?
I then replaced the dialog/CButton's with buttons created by the CChartObjectButton OOP class. 9/10 times it seems to work, but occasionally the button appears as though it was not clicked and the button State() confirms this.
Every time I click a button I can see that the event (CHARTEVENT_OBJECT_CLICK) is being processed, so I know that part is working as expected, but when I check the buttons state, it confirms the buttons visual state that the button was NOT clicked!
I have done a quick search, but cannot find if this is a known issue?
As a test, I wrote the following sample EA which highlights the issue.
Does anyone know if this is a known issue and if so, does anyone know if it should work as expected if coded from the ground up using ObjectCreate?