Download MetaTrader 5

Get XSIZE of a LABEL OBJECT - Is it possible? - page 2

To add comments, please log in or register
JD4
1100
JD4  
eevviill:

0 than 69(ok) 69 69 0 0 0 69 0

Moderators can you fix the problem? 

Moderators are responsible for the forum, not necessarily programming help.  Other users can help you with your programming questions, if they know a solution.
Ex Ovo Omnia
3374
Ex Ovo Omnia  
JD4:
Moderators are responsible for the forum, not necessarily programming help.  Other users can help you with your programming questions, if they know a solution.
Actually stringo is a staff member. Nevertheless he explained the problem, the value is calculated after the object is fully rendered when the parameters change.
Vasyl Nosal
19403
Vasyl Nosal  
JD4:
Moderators are responsible for the forum, not necessarily programming help.  Other users can help you with your programming questions, if they know a solution.

It is not programing question.

It is mistake in developers rules. 

Ex Ovo Omnia
3374
Ex Ovo Omnia  
eevviill:

It is not programing question.

It is mistake in developers rules. 

Not sure what you mean. The objects get rendered by Windows.
Vasyl Nosal
19403
Vasyl Nosal  
stringo:

You can get requested data after chart drawing only.

Size of label object calculated at chart drawing. You cannot get size immediately after label object create

I see. Function ObjectSet(Create) returns true/false if command sended to chart, not when object has been modified.

Where is logic?????

And if your rules like this, you need to enter to MQL4 some like IsObjectReadyToObjectGet() 

Anton
1853
Anton  
stringo:

You can get requested data after chart drawing only.

Size of label object calculated at chart drawing. You cannot get size immediately after label object create

+ or after
ObjectSetString(0,name,OBJPROP_TEXT,object);
Vasyl Nosal
19403
Vasyl Nosal  
antt:
+ or after

Cool. 

I creat object

setText

and can't get it size???

 

Fix the problem.

true must returns not when command sended to chart to change label, function must return true when object has been CHANGED.

12
To add comments, please log in or register