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...)?
Files:
eIncGUI_v3_Test_Form.ex5
195 kb
eIncGUI_v3_Test_Form.mq5
24 kb
IncGUI_v3.mqh
458 kb
- Indicators: XIT_FIBS
- Changing chart color
- Color of ZigZag indicator?
Yes please see: https://www.mql5.com/en/articles/2128
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.
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.
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