Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do we get a MessageBox that supports skins?

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

    How do we get a MessageBox that supports skins?

    Hi there,

    Can you please give an example of how to get a MessageBox that supports skins like the one in the attached screen shot.

    Thank you for your time,

    codeowl
    Attached Files

    #2
    Hello,

    Thank you for the question.

    This could be achieved using the NTMessageBoxSimple class, unfortunately this is not a documented item at this point in time.

    Here is a simple example:

    Code:
    ChartControl.Dispatcher.InvokeAsync(new Action(() => {      
    	NinjaTrader.Gui.Tools.NTMessageBoxSimple.Show(Window.GetWindow(ChartControl.OwnerChart as DependencyObject), "Hey there", "Guess What?", MessageBoxButton.OK, MessageBoxImage.Hand);
    }));
    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse,

      Thanks for the quick reply and great example mate. That looks like exactly what I am after!!

      One problem, I can't find it in the NinjaTrader.Gui.Tools namespace.

      See the attached image. I spent some time searching through here before posting this question as this is where I found the NTGrid. I searched for Prompt, Message, Dialogue etc... and when I found nothing that looked like it was a MessageBox, I posted the question.

      It is great to know that there is a class for this provided though, I look forward to getting the location of it ;-)

      It's prob worth adding I am running NT 8.0.0.9 64-bit (Multi-Broker) - BETA

      Regards,

      codeowl.
      Attached Files
      Last edited by codeowl; 04-07-2016, 05:55 AM. Reason: Added version number

      Comment


        #4
        Hello,

        Thank you for the reply.

        I am unsure based on the image regarding beta 9, unfortunately we are no longer on the prior beta to address where that may have been before. I do see that in b10 it is in the NinjaTrader.Gui.Tools namespace when using the object browser.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Jesse,

          Perfect thanks mate. Funny NT had prompted me to update previously, but not this time. However after I installed Beta 10 the NTMessageBoxSimple is there.

          Thanks again for your help ;-)

          Regards,

          codeowl

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          6 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Working...
          X