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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X