Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 07:31:23 +0000



Bug in the Tool.Clear() feature by UseTool

View Count: 1185

[2014-07-28 08:12:09]
sampater - Posts: 244
Hi SC Engineering,
Probably there is a bug in the Tool.Clear() feature by UseTool. See attached file ClearTest.cpp below.

A first study draws an Ellipse in blue, the Outline is 3 (Tool.LineWidth = 3). Next this Ellipse is modified - color red and without the Outline (Tool.LineWidth = 0). But on the chart the Outline still there is and is blue.

A second study draws an Horizontal Ray in blue, with a text " Blue Ray". Next this drawing is modified to a Horizontal Level in red and without any text. But on the chart the text still there is.

In both studies the Line Number is the same and Tool.AddMethod = UTAM_ADD_OR_ADJUST.

Best regards,
Marek


attachmentClearTest.cpp - Attached On 2014-07-28 08:06:29 UTC - Size: 3.34 KB - 505 views
[2014-07-28 08:34:56]
Sierra Chart Engineering - Posts: 104368
We will check on the first problem.

For the second problem there is no way to remove text from a chart drawing added by ACSIL. You could indirectly remove it by setting it to a single space.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-07-28 10:09:06]
sampater - Posts: 244
We will check on the first problem.
Thanks.


You could indirectly remove it by setting it to a single space
Then, is visible single space if in its place there is a another drawing like Ellipse or Rectangle. So, better solution is delete a drawing before modify its, by sc.DeleteLineOrText().
This solution can be used for first problem, too.

Marek

[2014-07-28 17:52:15]
Sierra Chart Engineering - Posts: 104368
Both of the reported issues will be solved in the next release.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-07-28 17:54:21]
sampater - Posts: 244
Thanks !
[2014-07-28 20:04:35]
ejtrader - Posts: 688
Interesting to know that this a bug. I was running into similar issue - where there was text in unwanted place and refresh was fixing it. Though I didn't like - I was using the work around "sc.DeleteLineOrText" as an option to delete unwanted text. Now I think I should be able to remove this work around.

Thank you Marek for pointing this out and SC team for actually addressing this.

thanks
[2014-07-28 21:28:17]
Al SC Developer - Posts: 434
These are addressed in ver 1167.

The line width will now be able to be adjusted to zero for highlight drawings allowing the removal of the outline. Your code will need to be recompiled against ver 1167, and you will need to explicitly set the LineWidth to zero (i.e. Tool.LineWidth = 0; ).

For removing text from a drawing, you should now be able to explicitly set the Text member to an empty string to cause the label to be removed (i.e. Tool.Text = ""; ).
[2014-08-01 13:22:03]
sampater - Posts: 244
Everything works fine in ver 1167.

Thank you,
Marek

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account