
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
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.