If the graphic panel is created in OnInit() , when you change the timeframe this will run that code again.
if your code doesn't keep track of the checkbox state and apply that value when it is recreated it will have the default value.
if your code doesn't keep track of the checkbox state and apply that value when it is recreated it will have the default value.
Douglas Prager #:
If the graphic panel is created in OnInit() , when you change the timeframe this will run that code again.
if your code doesn't keep track of the checkbox state and apply that value when it is recreated it will have the default value.
If the graphic panel is created in OnInit() , when you change the timeframe this will run that code again.
if your code doesn't keep track of the checkbox state and apply that value when it is recreated it will have the default value.
Thank you for answering
Funny, I used the CCheckBox class so I don't want to track the status of the checkbox. I'm trying to minimize state tracking by using a static variable.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi
I added a checkbox to the graphical panel, When I tick the checkbox and then change the time frame, checkbox status (Checked or Uncheck) is reseted.