Download MetaTrader 5
To add comments, please log in or register
Develop applications to order. Make profit using Freelance service!
JefCrystal
88
JefCrystal 2016.02.02 22:23 

Trying to make it print vertically a label on a button. Is this possible?

 
   
   ObjectCreate(sObjectName,OBJ_BUTTON,0,0,0);
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_XDISTANCE,iPramXDISTANCE);
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_YDISTANCE,iPramYDISTANCE);
//--- set button size
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_XSIZE,iPramXSIZE);
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_YSIZE,iPramYSIZE);

   
//--- set the chart's corner, relative to which point coordinates are defined
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_CORNER,3);
//--- set the text
   ObjectSetString(lChart_ID,sObjectName,OBJPROP_TEXT,sScreenInfo);

//--- set text font
   ObjectSetString(lChart_ID,sObjectName,OBJPROP_FONT,"Arial");
//--- set font size
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_FONTSIZE,8);
//--- set text color
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_COLOR,clrWhite);
//--- set background color
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_BGCOLOR,cColor);
//--- set border color
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_BORDER_COLOR,clrBlack);
//--- display in the foreground (false) or background (true)
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_BACK,false);
//--- set button state
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_STATE,false);
//--- enable (true) or disable (false) the mode of moving the button by mouse
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_SELECTABLE,false);
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_SELECTED,false);
//--- hide (true) or display (false) graphical object sObjectName in the object list
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_HIDDEN,False);
//--- set the priority for receiving the event of a mouse click in the chart
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_ZORDER,0);
   ObjectSetInteger(lChart_ID,sObjectName,OBJPROP_ALIGN,ALIGN_CENTER);    // align center
honest_knave
947
honest_knave 2016.02.02 23:21  

I don't think that is supported for buttons.

You'll probably have to use OBJ_LABEL (with OBJ_RECTANGLE_LABEL as a background) then set OBJPROP_ANGLE to 90.

JefCrystal
88
JefCrystal 2016.02.03 00:49  
honest_knave:

I don't think that is supported for buttons.

You'll probably have to use OBJ_LABEL (with OBJ_RECTANGLE_LABEL as a background) then set OBJPROP_ANGLE to 90.

 

Bummer that is what I thought. Thanks for your time
/
To add comments, please log in or register