Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 07:22:29 +0000



Post From: Cut drawing object-2 items->1 UI & 1 ACSIL - one general tool request - One Doc update

[2022-05-01 20:43:58]
JohnR - User831573 - Posts: 300
-->Cut drawing object<-- I really like this ability. I prefer it to the "Extend" capability, in my currrent usage. There is documentation for the ability to cut a drawing object by the user from the menu. I like the way this is possible, Great capability. B U T --- there are a few things I am looking for answers / knowledge / direction. Please!
- In playing/testing with objects on the chart I came to the following conclusions. It is not a one time cut, as SC does keep track of this cut bar # some where, and it is tied to that specific object, presumably until I "Extend". Verifiable, because if I move the object around, it does stay with the cut bar as the end of the 'seen' object. If it matters, for this project, I am specifically interested in the 1 - pitchfork and 2 - ray drawing tools.

From a UI need
1 - When I bring up the Pitchfork or the Ray / Line Properties popup menu - by a right click on the object then select Chart Drawing Properties. I do not see it stated on any of the 3 tabs, that this object instance is "cut". I would like to see a check box for Cut_Left & Cut_Right, the state Cut/UnCut and/or an offset / bar # where the cut was selected. I do see "Extend" and it's multiplier field, but it has no effect on "Cut". Please add to the 'Options' tab. Cut Left and Right info.
- from a usage stand point, it would be great to have the ability to go back to the original uncut / un-extended original shape / properties prior to cut/extend, as the 2 or 3 selected points are still visible properties.

From an ACSIL train of thought

2 -Which properties in which data structure would have the values/state of a drawn object that is has been cut? --- Cut_State_Left, Cut_Left_BarNum, Cut_State_Right, Cut_Right_BarNum.

I have not found the properties within each type of drawing objects data structure or an associated structure containing the values.
- Are cut values an offset, or a specific bar/dateTime value?
- Is state(s) a separate property or determined via non_zero value in BarNum properties.
Please, please please, share this. I am willing to sign an NDA if you prefer and also, work is intended for my personal use, but I am also willing to share if you prefer and see some value?

My general tool request, add a property called "Text" to all drawn object types. It is there for some now. I think it could could be used as a possible solution if it were part of add drawn objects. Also add View/Edit "Text" and check box to hide on the Options tab. People could creatively use it, if consistent across all tool types, for a # of tool enhancements they have requested. They would have to code, but they can achieve their desired results. This "Text" property would be available for all drawn object types. Both User and ACSIL drawn tools. Please include the ability to hide the text. This way we could access it from ACSIL, but not clog up the UI with unnecessary text. for the user that wants to turn on / off certain sup/res objects across multiple charts. Using this common "Text" property and shell of logic like included in the provided Menu/ControlBarButtons to turn on / off Just like Hide does currently individually.

In my case, I am adding lines to the pitchfork tool, based on the original 3 selection points. If I, as a user, move / delete or do anything to the original pitchfork, my code needs to be able to be able to make corresponding adjustments to the additional drawn objects I put on the screen using ACSIL. I would use a unique # name for the pitchfork and my objects to use this as a grouping mechanism. Having the ability to query drawn objects based the Text field for a unique string, would allow me to make the adjustments (Move / Delete / etc ) to my drawn objects. For all desired / included objects to act as one unified thing. As FYI only, My current solution which I am building has started with your example code in Studies.cpp - A good shell, it is easy to add my stuff to various menu selections / control bar buttons activity.

Doc correction - the name of the example in studies.cpp is now scsf_ButtonAndMenuAndPointerExample -- not scsf_MenuAndPointerExample()
Advanced Custom Study Interaction With Menus, Control Bar Buttons, Pointer Events

Hop I am not asking for too much.

JohnR
Date Time Of Last Edit: 2022-05-01 20:45:23
imageMenu_n_Pointer_Example_Doc.jpg / V - Attached On 2022-05-01 19:09:18 UTC - Size: 197.61 KB - 120 views