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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    94 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    56 views
    0 likes
    Last Post PaulMohn  
    Working...
    X