Minimize Maximize Form with MQL?

To add comments, please log in or register
SteelAce
217
SteelAce  
Is it possible to minimize and maximize form with MQL ( Ultimatively with NOT Removing it) ? And is it possible to change input box backgound color (I want to toggle it between green and red depending...)?
Marco vd Heijden
Moderator
12480
Marco vd Heijden  
Graphical Interfaces I: Functions for the Form Buttons and Deleting Interface Elements (Chapter 4)
Graphical Interfaces I: Functions for the Form Buttons and Deleting Interface Elements (Chapter 4)
  • 2016.02.18
  • Anatoli Kazharski
  • www.mql5.com
In this article, we are going to continue developing the CWindow class by adding methods, which will allow managing the form by clicking on its controls. We will enable the program to be closed by a form button as well as implement a minimizing and maximizing feature for the form.
SteelAce
217
SteelAce  

I have found way for changing color of every object. You have to find corresponding object declaration, for example class CInputBox{... ,then add function  

       void SetColor(color aColor=16777216){
            if(aColor==16777216){
               aColor=ClrScheme.Color(44);
            if(aColor==0)
               ClrScheme.Color(0);
            }
         m_BgColor=aColor;

and yeppiyee, you can use that function in your code for changing object color!

Unfortunately I didn't find how to Minimize and Maximize Form in MQL5.

To add comments, please log in or register