Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add to AddOn menu a green icon

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

    How to add to AddOn menu a green icon

    Hi

    I would like to add a "greenlight" image / icon to my Addon menu, similar to Connections (when is connected)

    Can I do that?
    If yes, can you help me with a sample script?

    Thank you in advance!

    Lorant
    Attached Files

    #2
    Hello,

    Thank you for the post.

    Yes you could create any elements that you would like in an addon as you are using standard WPF and Xaml.

    I currently don't have a specific Addon example of a MenuItem with an image, but there are many tutorials for creating a menu item with image for Xaml. Here is one: http://www.wpf-tutorial.com/common-i.../menu-control/

    For adding a Menu to NinjaTrader, we do have an example of what is required in an Indicator:


    This example creates a menu entirely from code, in an addon you could do this or use Xaml it would be up to how you are designing the addon currently. In either case, the MenuItem would need its Icon property assigned to an Image to display a Icon next to the Header. This also shows the NinjaTrader styles used if you wanted to match it to the platform.

    To load an image or Path as an icon, you could see the following post: http://ninjatrader.com/support/forum...54&postcount=8
    This specific example is for overriding the Icon property of a drawing tool, but the syntax to load the image could modified to be used in an addon for loading an image to make an icon.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      41 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      11 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      3 views
      0 likes
      Last Post port119
      by port119
       
      Started by Philippe56140, Today, 02:35 PM
      0 responses
      4 views
      0 likes
      Last Post Philippe56140  
      Started by 00nevest, Today, 02:27 PM
      0 responses
      2 views
      0 likes
      Last Post 00nevest  
      Working...
      X