| / | Forum |
|
brspMA
2008.01.03 06:32
Hi all,
It is possible to use a rectangle fix at the window likewise a label? In other words, it is possible to use a rectangle with OBJPROP_XDISTANCE, and OBJPROP_YDISTANCE ? Thanks a lot,,, |
|
How to Cut an EA Code for an Easier Life and Fewer Errors A simple concept described in the article allows those developing automated trading systems in MQL4 to simplify existing trading systems, as well as reduce time needed for development of new systems due to shorter codes. |
|
phy
2008.01.03 08:15
No |
|
brspMA
2008.01.03 22:03
Thanks phy,
I've had an idea that might have the same results. I've checked out that the arrow symbol 110 is a kind of rectangle. So, I though if I could use this symbol as a label, I could give a big size to it and make it like a such rectangle I am looking for. Do you know if I can use the arrows symbol as a label? And if I can, how? Thanks a lot,,, |
|
phy
2008.01.03 23:18
You can specify font for label |
|
brspMA
2008.01.04 02:02
Ok... and how I do it?
I know I want to use the "arrow code 110" (which is a rectangle) as a label, but how I use that code in the label setting? ObjectSetText (ObjName,"arrow code 110",50, "Arial Bold", ThisColor);What should put in the place of "arrow code 110"? Thanks a lot,,, |
|
phy
2008.01.04 06:06
Specify the font you want to use and set the hexadecimal ASCII-code of the character you want to use from that font in the label's text |
|
brspMA
2008.01.04 07:22
Yes... thank you,
but life is not that easy still...:) Worst, it should not be that complicated... :) I was just trying to use a rectangle as a label in the screen to help visualizing some information. I found something similar to a rectangle ("arrow code 110"), and now I was wondering how to use (if I can) that arrow code as a label. If someone could accomplish this task, I would definitely appreciate. Thanks a lot,,, |
|
phy
2008.01.04 07:33
ObjectSetText (ObjName,"\x6E",50, "WingDings", ThisColor); |
|
brspMA
2008.01.04 08:06
phy wrote:
ObjectSetText (ObjName,"\x6E",50, "WingDings", ThisColor); Thank you so much, worked fine. Thank you!!!! |
|
brspMA
2008.01.04 11:00
I would like to thank phy again,
And now just to enrich this topic, after a little research, I came with a perfect rectangle I was looking for: ObjName=FindThis+"Rectangle 1"; ObjectCreate (ObjName, OBJ_LABEL, 0, 0, 0); ObjectSetText (ObjName,"g",80, "Webdings", Black); // http://www.knowlesys.com/software/glyph-font-viewer/ ObjectSet (ObjName, OBJPROP_CORNER,0); ObjectSet (ObjName, OBJPROP_XDISTANCE,80); ObjectSet (ObjName, OBJPROP_YDISTANCE,0);Thank you all,,, |