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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      45 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      99 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      177 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      170 views
      0 likes
      Last Post CarlTrading  
      Working...
      X