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

Link style

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

    Link style

    Hello,

    I need a link like that one:



    Please post a code that will make a control like that. I assume that I have to only bind one of the standard controls style to a predefined one in NT.

    #2
    Hello PopovMP,

    Thanks for opening the thread.

    That control is a button that has a transparent background and a transparent border brush.

    You can use Inspect tool from Microsoft to identify controls used in NinjaTrader to get an idea on how you can create a similar control, or to obtain an automation ID if you wish to override some control. This tool is a general use tool for Windows and comes with Windows Software Development Kit (SDK) for Windows 8 which can be installed with Visual Studio.

    You can get the Windows SDK here: https://developer.microsoft.com/en-u...indows-8-1-sdk

    Further information on Inspect can be found here: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

    I have created a video demonstrating how you can find the template button control type using Inspect: https://www.screencast.com/t/AyyNpE2NyE

    You can modify the AddOn Framework example to create a similar button as follows:
    Code:
    // Find OnNews button and attach event handler
    onNewsButton = LogicalTreeHelper.FindLogicalNode(pageContent, "onNewsButton") as Button;
    [B]onNewsButton.BorderBrush = Brushes.Transparent;
    onNewsButton.Background = Brushes.Transparent;[/B]
    The AddOn Framework sample can be found in our help documentation on AddOns here: https://ninjatrader.com/support/help...t_overview.htm

    Keep in mind that modifying NinjaTrader controls and using C# code that is outside of what we have documented escapes what we can provide support for. There may be an internal change that breaks those types of modifications.

    There is a sample written by our colleague Jessica that overrides some controls that can be referenced here: http://ninjatrader.com/support/forum...644#post490999 This is all the direction we can offer for these unsupported techniques.

    Please let me know if I may be of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Excellent replay.

      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by helpwanted, Today, 03:06 AM
      1 response
      12 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      9 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      5 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      242 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      387 views
      1 like
      Last Post Gavini
      by Gavini
       
      Working...
      X