Gallery of UIs written in MQL - page 27

 

Can you explain: i, AT, _X2X, "MF", 10, _Y2Y, "MF", 10, what does this line of code mean?

What do these lines of code mean?

 

*Important note:

Be sure to compile the markup code file after making changes. This way you save its new version.

Then compile the KIB-source indicator and you will immediately see the interface changes in the MT5 window.


P.S. In old builds you could compile KIB-source at once and all connected files were automatically updated. This does not work in build 4420.

 
Реter Konow #:

*Important Tip:

Be sure to compile the markup code file after making changes. This will save the new version.

Then compile the KIB source code indicators and you will immediately see the interface changes in the MT5 window.


Note: In older versions you could compile KIB-source once and all connected files would be updated automatically. This feature does not work in version 4420.

This is too bad, it's a bit of a hassle to have to compile each change to see the effect. May I ask what is the reason why it doesn't work in 4420?

 
hini #:

Please explain i, AT, _X2X, "MF", 10, _Y2Y, "MF", 10, what does this line of code mean?

What do these lines of code mean?

This is the positioning string for a group of items in a window.

  • i - literally means"this group"
  • AT - Position setting
  • _X2X - The X coordinate of a group/object is mapped to the X coordinate of another group/object.

  • _Y2Y - The Y coordinate of a group/object is mapped to the Y coordinate of another group/object.
  • "MF" - Abbreviation for Main Frame (meaning window). We call the object to the coordinates of which we snap the group.
  • 10 - This is a correction to the binding. It can be any - positive or negative.



I should add that there are other types of bindings. There are also binding flags, such as LEFT_TOP, RIGHT_TOP, RIGHT_BOTTOM,.... and others.

 
hini #:

This is very bad, having to compile every change to see the effect. May I ask what is the reason why this feature doesn't work in 4420?

Unfortunately I don't know. We have to reckon with the developers' rationality, though it is not always clear to the average user. I won't criticise this solution, just keep this nuance in mind.

 

"Hello World!", W,100, _,H, 200.

What is the purpose of this underline where it is marked in yellow?

 
Реter Konow #:

....

I should add that there are other types of bindings. There are also binding flags, such as LEFT_TOP, RIGHT_TOP, RIGHT_BOTTOM,.... and others.

The string i, AT, _X2X, "MF", 10, _Y2Y, "MF", 10, can be used by default. It is universal.

You change only the name of the georeferencing object and the X and Y corrections.

When you create several groups in the window, I will show you how to use the positioning flags.

 
Реter Konow #:

I need to add that there are other types of bindings. There are also binding flags like LEFT_TOP, RIGHT_TOP, RIGHT_BOTTOM,.... etc. etc.

In which file can I view all the bindings? As well as some properties. Otherwise it can only be known by you telling us.

 
hini #:

"Hello World!", W,100, _,H,200.

What is the purpose of this underline where it is highlighted in yellow?

This sign links enumerated properties so that the constructor knows they refer to the same element.

It should be placed after the element name.

For example: "Hello World!", W,100,_, H,200, _ , N_COLOR, clrWhite, _, A_COLOR, clrBlack, ....


First we write the name, then we list the properties and their values. The result is a string of element properties that can be copied and used as a template, substituting it for new elements.


N_COLOR - means the colour of the neutral state.

A_COLOR - means the colour of the activated state.
 
hini #:

In which file can I view all the bindings? And also some properties. Otherwise it can only be found out by letting us know.

I try to consistently provide training material for harmonious and easy assimilation.

At the first stage it was important for me to know that those who wished could run the constructor and the indicator. As a result, they got a window.

Next, they should open the kib-code file and understand its simple structure.

Then we move on to the Q&A.

And moving on from there.


I will provide tutorials on properties and positions. I will. I might be able to do it today.