I just think am I first man which is looking for a solution Label, Button, RectLabel should always stay on the left side of the screen? Of course absolutely NOT.
I do not believe it. But...
In latest 2 days I tried to find good results in forums and some functions documentations. But so far I do not get good results.
( just one word I am sleeping on the SEO ) I do not want to give up.
Just if I know one function could help me I will research about that. So far I can't do any good things for it.
Yeah I have a countdown indicator which one there is an OBJ_TEXT which is moves bid price and stay right side.
Also I am worrying about could I not describe my issue clearly?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
You have 4 points so you can alter width and height in both directions.
If you want to move the entire object you would have to alter all 4 parameters.
Please explain what you want to do.
End of the last day, one man gave me an example, and it was awesome for me.
So, now I am hard working on it, so far everything is going good.
If I will struggle I will let you know.
All the best to you guys.
I just little confused so, below code is good for shows value in Button Object, please?
( it shows correct value - but I have a doubt below code )
( please, do not blame me )
All the best.
yes and no.
This converts the double into a string.
To set the label you need ObjectSetString()
yes and no.
This converts the double into a string.
To set the label you need ObjectSetString()
#Button Object Text - ReOpen
How can I bring Button Object Text to the center, please?
Once I passed this issue but now it is really annoying me.
ObjectSetInteger(0,"big button",OBJPROP_XSIZE,200);
ObjectSetInteger(0,"big button",OBJPROP_YSIZE,200);
ObjectSetInteger(0,"big button",OBJPROP_XDISTANCE,20);
ObjectSetInteger(0,"big button",OBJPROP_YDISTANCE,20);
ObjectSetString(0,"big button",OBJPROP_TEXT,"X");
ObjectSetString(0,"big button",OBJPROP_FONT,"Arial");
ObjectSetInteger(0,"big button",OBJPROP_FONTSIZE,170);
ObjectSetInteger(0,"big button",OBJPROP_COLOR,clrWhite);
ObjectSetInteger(0,"big button",OBJPROP_BGCOLOR,clrBlack);
ObjectSetInteger(0,"big button",OBJPROP_BORDER_COLOR,clrGray);
ObjectSetInteger(0,"big button",OBJPROP_BACK,false);
ObjectSetInteger(0,"big button",OBJPROP_STATE,false);
ObjectSetInteger(0,"big button",OBJPROP_SELECTABLE,false);
ObjectSetInteger(0,"big button",OBJPROP_SELECTED,false);
ObjectSetInteger(0,"big button",OBJPROP_HIDDEN,false);
ObjectSetInteger(0,"big button",OBJPROP_ZORDER,0);
ObjectCreate(0,"small button",OBJ_BUTTON,0,0,0);
ObjectSetInteger(0,"small button",OBJPROP_XSIZE,20);
ObjectSetInteger(0,"small button",OBJPROP_YSIZE,20);
ObjectSetInteger(0,"small button",OBJPROP_XDISTANCE,221);
ObjectSetInteger(0,"small button",OBJPROP_YDISTANCE,20);
ObjectSetString(0,"small button",OBJPROP_TEXT,"X");
ObjectSetString(0,"small button",OBJPROP_FONT,"Arial");
ObjectSetInteger(0,"small button",OBJPROP_FONTSIZE,10);
ObjectSetInteger(0,"small button",OBJPROP_COLOR,clrWhite);
ObjectSetInteger(0,"small button",OBJPROP_BGCOLOR,clrBlack);
ObjectSetInteger(0,"small button",OBJPROP_BORDER_COLOR,clrGray);
ObjectSetInteger(0,"small button",OBJPROP_BACK,false);
ObjectSetInteger(0,"small button",OBJPROP_STATE,false);
ObjectSetInteger(0,"small button",OBJPROP_SELECTABLE,false);
ObjectSetInteger(0,"small button",OBJPROP_SELECTED,false);
ObjectSetInteger(0,"small button",OBJPROP_HIDDEN,false);
ObjectSetInteger(0,"small button",OBJPROP_ZORDER,0);
( I am working on it. )
All the best.
That is the centre. Well... as best as MT4 thinks. There is no OBJPROP_ALIGN option for OBJ_BUTTON
If your character(s) fill a large percentage of the button area, you will realise that centre isn't actually always centre.
Sometimes whitespace and/or fontsize and/or font can help the visuals.
#Button Object Text - ReClose
That is the centre. Well... as best as MT4 thinks. There is no OBJPROP_ALIGN option for OBJ_BUTTON
If your character(s) fill a large percentage of the button area, you will realise that centre isn't actually always centre.
Sometimes whitespace and/or fontsize and/or font can help the visuals.