Here is an example.
Suppose I have a mouse function which draws certain indicators based on where I click on my screen.
If I scroll extreme to the left in eSignal, if the screen has to redraw itself as I do this, when I scroll back to the right whatever was drawn will have disappeared. The data that I have which contains the bars that should be drawn is saved so access to this is not an issue, but I don't want to have to iterate through each bar bar of the day checking to see if it should be redrawn in my main loop for performance reasons.
Is there a means to detect when my screen has been invalidated and my objects required to be redrawn again? Perhaps some sort of state that I could check?
Suppose I have a mouse function which draws certain indicators based on where I click on my screen.
If I scroll extreme to the left in eSignal, if the screen has to redraw itself as I do this, when I scroll back to the right whatever was drawn will have disappeared. The data that I have which contains the bars that should be drawn is saved so access to this is not an issue, but I don't want to have to iterate through each bar bar of the day checking to see if it should be redrawn in my main loop for performance reasons.
Is there a means to detect when my screen has been invalidated and my objects required to be redrawn again? Perhaps some sort of state that I could check?
Comment