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 alifarahani, Today, 09:40 AM
          4 responses
          21 views
          0 likes
          Last Post alifarahani  
          Started by gentlebenthebear, Today, 01:30 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by PhillT, Today, 02:16 PM
          2 responses
          7 views
          0 likes
          Last Post PhillT
          by PhillT
           
          Started by Kaledus, Today, 01:29 PM
          3 responses
          11 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frankthearm, Yesterday, 09:08 AM
          14 responses
          47 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X