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 maybeimnotrader, Yesterday, 05:46 PM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Perr0Grande, Yesterday, 08:16 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by f.saeidi, Yesterday, 08:12 AM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by algospoke, Yesterday, 06:40 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by quantismo, Yesterday, 05:13 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X