Download MetaTrader 5
To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
macpee
287
macpee 2016.10.13 07:03 
Hi comrades, how can I continue writing on the next line (similar to pressing the 'enter key' on a keyboard) on the label of a button I have created? Thank you for you in advance?
Keith Watford
Moderator
8007
Keith Watford 2016.10.13 07:56  
As far as I know, it is not possible. You could overprint with 2 labels.
macpee
287
macpee 2016.10.13 07:58  
GumRai:
As far as I know, it is not possible. You could overprint with 2 labels.

Thank you for that remark. But how can I overprint with two labels, do you mean creating two buttons and merging them together, each having one label? That is the first idea I made of what you said. The second idea I made of what you said is executing the label print code a second time on the button such as:

ObjectSetString(0,"Schedule",OBJPROP_TEXT,"Schedule");
ObjectSetString(0,"Schedule",OBJPROP_TEXT,"time");

In the latter case, what about spacing, is it appropriately spaced or is there a way to adjust?

macpee
287
macpee 2016.10.13 08:11  
I tried the second option and it overwrote the first label. Any suggestion please?
Keith Watford
Moderator
8007
Keith Watford 2016.10.13 08:25  
No, I mean create the button with no text and then create 2 OBJ_LABEL and position them on top of the button.
macpee
287
macpee 2016.10.13 08:29  
GumRai:
No, I mean create the button with no text and then create 2 OBJ_LABEL and position them on top of the button.
Ok I think I got you now. That is a nice idea. Thanks again.
/
To add comments, please log in or register