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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    232 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    149 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    161 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    243 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    198 views
    0 likes
    Last Post CarlTrading  
    Working...
    X