Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Keep Drawing Tool Anchors Visible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Keep Drawing Tool Anchors Visible

    When coding a custom drawing tool, is there a way to specify that the anchors will be visible even when the tool is not selected.

    I am working on a indicator that uses the anchor values from a user drawn tool. I don't really want to have the drawing tool display anything other than the anchors so the user can still select and move the anchor locations.

    If this is not possible, then I do have a work around and can draw a dot or something similar where the anchors are. The drawback to this workaround is it requires an extra mouse click to relocate the anchors.

    Thanks for your help.
    The Trading Mantis
    NinjaTrader Ecosystem Vendor - The Trading Mantis

    #2
    Hello gregschr,

    Theoretically the Anchor's .IsEditing property could be set / kept to true in the OnMouseDown method.

    This may cause unexpected behavior as this is not the intended behavior for a drawing object.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks ChelseaB,

      Your suggestion made me realize even if the anchors were still visible, an extra click would be required anyway, to change the DrawingState from Normal to Editing.

      I think I will stay with multiple clicks, rather than keep the tool in editing mode.
      The Trading Mantis
      NinjaTrader Ecosystem Vendor - The Trading Mantis

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      149 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,283 views
      0 likes
      Last Post Leafcutter  
      Working...
      X