CAppDialog issues with EventSetTimer

Dark Ryd3r
1238

I am using standard library CAppDialog to create a dialog

void OnInit() {
EventSetTimer(1);
}

void OnTimer() {
// Do Something
}

When

EventSetTimer(1);

is set, The panel freezes and becomes unresponsive but when

EventSetTimer(5);

is set, it works !

How can i make it work on 

EventSetTimer(1)

?

I have also tried it with

Sleep(1000)

it freezes until value is more than 

 5000 

milliseconds

Documentation on MQL5: Standard Library / Panels and Dialogs / CAppDialog / Create
Documentation on MQL5: Standard Library / Panels and Dialogs / CAppDialog / Create
  • www.mql5.com
Create(const long,const string,const int,const int,const int,const int,const int) - CAppDialog - Panels and Dialogs - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Alexandre Borela
4148
Show us the contents of OnTimer.