Ability to create rectangles in EasyLanguage?

Questions about MultiCharts and user contributed studies.
jek
Posts: 163
Joined: 24 Dec 2006
Been thanked: 2 times

Ability to create rectangles in EasyLanguage?

Postby jek » 25 Nov 2009

Is there any programmatic way to create rectangles?
Any plans to allow it?

What about other drawing tools?

Thanks!

User avatar
TJ
Posts: 6518
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 25 Nov 2009

Tutorial 29 - How to draw an adjustable rectangle or box using EasyLanguage

http://www.markplex.com/tutorial29-draw ... tation.php

http://www.youtube.com/watch?v=5VDXPcGa1cs

User avatar
TJ
Posts: 6518
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 29 Nov 2009


jek
Posts: 163
Joined: 24 Dec 2006
Been thanked: 2 times

Postby jek » 04 Dec 2009

Just getting around to saying thank you for the pointers.

I hadn't thought of drawing it with lines!

I'm still curious what TS plans might be to add other objects to EasyLanguage.

User avatar
ABC
Posts: 516
Joined: 16 Dec 2006
Has thanked: 110 times
Been thanked: 290 times
Contact:

Postby ABC » 04 Dec 2009

jek,

you can do rectangles quite nicely with:

Code: Select all

   TxtID = Text_New_S(Date, Time_S, Open, "               ");
      Text_SetBorder(TxtID, true);


if you want a colored rectangle you can use:

Code: Select all

Text_SetBGColor(TxtID, blue)
for example.

The size of the rectangle can be changed via the string containing just spaces and Text_SetSize of course.

Regards,

ABC

janus
Posts: 747
Joined: 25 May 2009
Has thanked: 41 times
Been thanked: 83 times

Re: Ability to create rectangles in EasyLanguage?

Postby janus » 09 Apr 2010

We need to have a rectangle drawing feature. Any time soon? At the moment I'm using line segments but that's resource hungry. A rectangle drawing feature would also reduce the amount of code substantially.

For completeness we should also have them for ellipse and arc, although I have no need of them now.


Return to “MultiCharts”