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 cupir2, Yesterday, 07:44 PM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by reynoldsn, Yesterday, 07:26 PM
      2 responses
      14 views
      0 likes
      Last Post reynoldsn  
      Started by MartinT, 05-17-2023, 06:00 AM
      18 responses
      173 views
      0 likes
      Last Post flybuzz
      by flybuzz
       
      Started by sgordet, Today, 05:24 AM
      2 responses
      21 views
      0 likes
      Last Post sgordet
      by sgordet
       
      Started by Board game geek, Today, 02:20 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X