Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTMenuItem: image as icon, is it possible?

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

    NTMenuItem: image as icon, is it possible?

    Hello.

    I am creating user menu.
    I learned examples from here: https://ninjatrader.com/support/foru...327#post499327

    And I still have a question: is it possible to add image (jpg, bmp) as icon to NTMenuItem?

    I tried to create ImageBrush object and set it as NTMenuItem.Background, but no image appeared on toolbar.

    My image source is string.
    I was able to upload image and safe as *.bmp file.
    It's resolution 465 x 143, 12.8 Kb.

    Tried to to put it on button - no result too.
    I tried to increase button size to fit image resolution - still any result.

    Are there any restrictions on file resolution \ size?
    Last edited by fx.practic; 07-24-2018, 07:55 AM.
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,
    Thanks for your post.

    Using an image for NTMenuItem is undocumented. I have never seen it done so I'm not certain if it is actually possible.

    I do know its possible to use a bmp/jpg image for a button, but that's not quite the same thing.

    https://ninjatrader.com/support/help...th_buttons.htm

    I will leave this post open for any other members that may have more information.
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X