Questions from Beginners MQL4 MT4 MetaTrader 4 - page 218
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
// задержка 500 милисекунд, годная для тестера
Tucked away in a mink
I'm trying to understand objects, there is an example in MQL4 Reference Manual where pressing a button (pressed/unpressed) changes the picture. The button has two states. So my question is how to make a button has, for example, 3 states or more? I want for each state of the button its own picture. If it is impossible to do this with this function, then what function to achieve the desired result?
I'm trying to understand objects, there is an example in MQL4 handbook where pressing a button (pressed/unpressed) changes the picture. The button has two states. So my question is how to make a button has, for example, 3 states or more? I want for each state of the button its own picture. If you can not do this with this function, what function to achieve the desired result?
Half-pressed :)
Slider on 9 positions) I realised that when pressed it became light yellow, when double pressed it became yellow. But this is not a standard button.
Seriously? So hard to understand even if you read further about the desired result?
Every time you click on a picture, the picture changes. For example 5 pictures, each picture will change every time you click on it, and so on and so on.
Just OBJPROP_STATE was just right, if you wanted to change 2 pictures in a circle, but over more than two.
Really? So hard to understand even if you read further about the desired result?
Every time you click on a picture, the picture changes. For example 5 pictures, each picture will change each time you click and so on in a circle.
Just OBJPROP_STATE was just right, if you wanted to change 2 pictures in a circle, but over more than two.
Just OBJPROP_STATE was fine if you needed to change 2 pictures in a circle, but over more than two.
Possible solution: create several OBJ_BITMAP_LABEL objects one by one. Clicking on the first object deletes it and creates a second one in the same place. After the second object, a third object is created. For both OBJPROP_BMPFILE modes , you load the same image and do not track the state of the click, but track the name of the existing object. This name will tell you the current state of the button.
Possible solution: create several OBJ_BITMAP_LABEL objects one by one. Clicking on the first object deletes it and creates a second one in the same place. After the second object, a third object is created. For both OBJPROP_BMPFILE modes , you load the same image and do not track the state of the click, but track the name of the existing object. This name will tell you the current state of the button.
Thanks, I'll give it a try!