Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

detect chart resize

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

    detect chart resize

    hi
    i want to prevent my onrender method from working while the chart is in unstable condition i.e resizing or moved from monitor to monitor

    how can i detect that the chart is resizing or moving from within a script ?

    #2
    Hello doron,

    Thank you for your note.

    There is no means to prevent OnRender(). OnRender() is what is called when you resize or move the chart.

    Comment


      #3
      Just a thought...

      There are .NET approaches to detecting window resize events that you can Google. You could set a flag during resize that you can check for in OnRender() and prevent any code you may not want to run.
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ETFVoyageur, Yesterday, 12:26 PM
      6 responses
      28 views
      0 likes
      Last Post ETFVoyageur  
      Started by ETFVoyageur, 05-18-2024, 12:45 AM
      12 responses
      64 views
      0 likes
      Last Post ETFVoyageur  
      Started by armybender, 11-16-2023, 08:38 PM
      12 responses
      189 views
      1 like
      Last Post NinjaTrader_RyanS  
      Started by Ryan333, Yesterday, 05:25 PM
      4 responses
      18 views
      0 likes
      Last Post Ryan333
      by Ryan333
       
      Started by wuannetraam, Yesterday, 07:43 AM
      8 responses
      46 views
      0 likes
      Last Post wuannetraam  
      Working...
      X