Greetings Members,
I have a question. How to get the minimized or maximized state status of the CAppDialog? Need to programmatically figure out whether the current window is in minimize state or in maximize state.
Tried following way with global variable:
It does change the minimized_status value on each click. But the problem is CAppDialog is no longer getting minimized after using this code.
Any easy method?
Thank you
Regards
always check the documentation
https://www.mql5.com/en/docs/standardlibrary/controls/cappdialog/cappdialogminimized
- www.mql5.com
always check the documentation
https://www.mql5.com/en/docs/standardlibrary/controls/cappdialog/cappdialogminimized
Thank you for your reply. Unfortunately, have tried it, no change. On clicking the minimize button its only changing the icon, main window is not minimizing with the custom function.
void OnClickButtonMinMax(){ if(minimized_status == 0) {minimized_status = 1;main_window.Minimized(true);} else {minimized_status = 0;main_window.Minimized(false);} }
Seems like custom function code has some issue, but unable to detect.
Thank you for your reply. Unfortunately, have tried it, no change. On clicking the minimize button its only changing the icon, main window is not minimizing with the custom function.
Seems like custom function code has some issue, but unable to detect.
Thank you for your reply. Unfortunately, have tried it, no change. On clicking the minimize button its only changing the icon, main window is not minimizing with the custom function.
Seems like custom function code has some issue, but unable to detect.
CAppDialog has that property by default (m_minimized):
void Minimized(const bool flag) { m_minimized=flag; }
Also you need to use the Minimize Maximize methods instead of Minimize(true | false)
void OnClickButtonMinMax(){ if(minimized_status == 0) {minimized_status = 1;main_window.Minimize();} else {minimized_status = 0;main_window.Maximize();} }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a question. How to get the minimized or maximized state status of the CAppDialog? Need to programmatically figure out whether the current window is in minimize state or in maximize state.
Tried following way with global variable:
It does change the minimized_status value on each click. But the problem is CAppDialog is no longer getting minimized after using this code.
Any easy method?
Thank you
Regards